You are viewing a single comment's thread. Return to all comments →
Easy python sol:
def repeatedString(s, n): c = s.count("a") l = len(s) return c*(n//l) + s[:n%l].count("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 →
Easy python sol: