Subarray Division 1

  • + 0 comments

    Python3:

    def birthday(s, d, m): res = 0 if len(s) < m: return res for i in range(len(s)): if(sum(s[i : i+m])==d): res+=1 return res