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.
For the String aaabcccdddb the expected output would be
abcd , but the stack approac is giving us abcdb
I guess we need to lookinto the contents of the stack again.
Cookie support is required to access HackerRank
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 →
For the String aaabcccdddb the expected output would be abcd , but the stack approac is giving us abcdb I guess we need to lookinto the contents of the stack again.