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.
String manipulation can be deceptive! I was going through with the mindset during my planning phase of splitting the string with a substring() at long index but quickly realized that is not allowed.
Tried a few different tricks and came upon this solution. I was 1/2 of the way there. Thank you for this.
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 →
String manipulation can be deceptive! I was going through with the mindset during my planning phase of splitting the string with a substring() at long index but quickly realized that is not allowed.
Tried a few different tricks and came upon this solution. I was 1/2 of the way there. Thank you for this.