You are viewing a single comment's thread. Return to all comments →
return sum(sum(s[element:element+m) == d for element in range(len(s))])
Seems like cookies are disabled on this browser, please enable them to open this website
Subarray Division
You are viewing a single comment's thread. Return to all comments →
return sum(sum(s[element:element+m) == d for element in range(len(s))])