[2018][ruby][4.x] itself

sorbet
Alpha Chen 6 years ago
parent 53ce2c6898
commit df42ca7275

@ -17,7 +17,7 @@ records.each do |record|
end end
end end
stats.transform_values! {|v| v.group_by {|x| x }.transform_values(&:count) } stats.transform_values! {|v| v.group_by(&:itself).transform_values(&:count) }
# Part One # Part One
guard, minutes = stats.max_by {|_,v| v.values.sum } guard, minutes = stats.max_by {|_,v| v.values.sum }

Loading…
Cancel
Save