[2020][ruby][10.x] refactor

pull/2/head
Alpha Chen 4 years ago
parent 074fbc54d6
commit 771ad5c052

@ -26,4 +26,4 @@ p dist
.slice_when {|a,b| a != b }
.select {|run| run.first == 1 }
.map {|run| arrangements[run.size] }
.inject {|a,b| a*b }
.inject(&:*)

Loading…
Cancel
Save