You are viewing a single comment's thread. Return to all comments →
How does this code work if it doesn't push the numbers back onto the 'Rear' stack before pushing the next item. Wouldn't that mess up the order?
Seems like cookies are disabled on this browser, please enable them to open this website
Queue using Two Stacks
You are viewing a single comment's thread. Return to all comments →
How does this code work if it doesn't push the numbers back onto the 'Rear' stack before pushing the next item. Wouldn't that mess up the order?