You are viewing a single comment's thread. Return to all comments →
Python solution:
def birthday(s, d, m): return len([i for i in range(0, len(s) + 1) if sum(s[i: i + m]) == 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 →
Python solution: