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.
I would expect it to work since it's quite similar to some of the solution, the main difference is to not add the 'z' for the compare. Instead if one of the string is empty, I stop looping, and add to the rest of the string the other string. However this doesn't work, and I am not sure why
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Morgan and a String
You are viewing a single comment's thread. Return to all comments →
I'm wondering why this doesn't work :
I would expect it to work since it's quite similar to some of the solution, the main difference is to not add the 'z' for the compare. Instead if one of the string is empty, I stop looping, and add to the rest of the string the other string. However this doesn't work, and I am not sure why