You are viewing a single comment's thread. Return to all comments →
Everytime a pair of letter deleted, the loop must be restarted to delete another pair until there are none consecutive duplicate character.
Remember after the loop we increment variable i with 1, so we have i=0 to return to its original position which is 1.
Seems like cookies are disabled on this browser, please enable them to open this website
Super Reduced String
You are viewing a single comment's thread. Return to all comments →
Everytime a pair of letter deleted, the loop must be restarted to delete another pair until there are none consecutive duplicate character.
Remember after the loop we increment variable i with 1, so we have i=0 to return to its original position which is 1.