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.
in case 4 we should undo right..so inorder to do that we should push empty string..then we can add it to the string and make it when we need to undo..even i got the same doubt initially..once u pls trace it u will get that...
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Simple Text Editor
You are viewing a single comment's thread. Return to all comments →
in case 4 we should undo right..so inorder to do that we should push empty string..then we can add it to the string and make it when we need to undo..even i got the same doubt initially..once u pls trace it u will get that...