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.
If you dont mind me asking you, could you explain why you do this:
if(n==1){stringstr;cin>>str;stk.push(st);// why push the string onto the stack when its //empty? why not after (st+=str) cause then this would append to the string?st+=str;}
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 →
If you dont mind me asking you, could you explain why you do this: