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