let me correct my statement, sorry, i wasnt reading it carefully..
For you to print it in "INPUT" sequence which is for number 3.) you have to see the bottom most, then you need another stack
For...
Type: Posts; User: chronoz13
let me correct my statement, sorry, i wasnt reading it carefully..
For you to print it in "INPUT" sequence which is for number 3.) you have to see the bottom most, then you need another stack
For...
for number 3.) it would be easy for you, yes, just pop everything you pushed on the stack so you can print it in sequence
for number 2.) i never tried it but i think you need another stack, or you...
you are actually pushing it inside the stack, if you know the data structure of stacks(last in, first out), there are 2 major ways to handle data inside of it, the "push" and "pop", you can read its...