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.
here we pushing the before appending a new one because when there will be a undo we can directly take the previous string from stack annd assign this value to
present string.
hope it helps
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 →
here we pushing the before appending a new one because when there will be a undo we can directly take the previous string from stack annd assign this value to present string.
hope it helps