You are viewing a single comment's thread. Return to all comments →
return sum(1 for i in range(n) if s[i % len(s)] == 'a')
Seems like cookies are disabled on this browser, please enable them to open this website
Repeated String
You are viewing a single comment's thread. Return to all comments →