You are viewing a single comment's thread. Return to all comments →
def birthday(s: Array[Int], d: Int, m: Int): Int = s.sliding(m).count{_.sum==d}
Seems like cookies are disabled on this browser, please enable them to open this website
Subarray Division 1
You are viewing a single comment's thread. Return to all comments →