You are viewing a single comment's thread. Return to all comments →
def birthday(s, d, m):
count = 0
for i in range(len(s)):
if(sum(s[i:m+i])==d): count = count + 1
return count
Subarray Division
You are viewing a single comment's thread. Return to all comments →
def birthday(s, d, m):
count = 0
for i in range(len(s)):
return count