You are viewing a single comment's thread. Return to all comments →
you can make it simpler:
def birthday(bar, day, month) (0..bar.length - month).count { |i| day == bar[i, month].sum } end
Subarray Division
You are viewing a single comment's thread. Return to all comments →
you can make it simpler: