You are viewing a single comment's thread. Return to all comments →
Did the same way, ie: checking whether there are enough characters or not to make the string can save us a few iterations ! :)
Seems like cookies are disabled on this browser, please enable them to open this website
HackerRank in a String!
You are viewing a single comment's thread. Return to all comments →
Did the same way, ie: checking whether there are enough characters or not to make the string can save us a few iterations ! :)