We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Forces me to think about the input string as a single unit as opposed to just concatenating the string onto itself until it reached the length of n and checking for the amount of a's in the resulting string like i originally did.
Cookie support is required to access HackerRank
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 →
This is a great one, thank you.
Forces me to think about the input string as a single unit as opposed to just concatenating the string onto itself until it reached the length of n and checking for the amount of a's in the resulting string like i originally did.