Data Structures and Algorithms - Stacks

26. An item that is read as input can be either pushed to a stack and later popped and printed, or printed directly. Which of the following will be the output if the input is the sequence of items 1, 2, 3, 4, 5?

Cancel reply

Your email address will not be published.


Cancel reply

Your email address will not be published.