58) 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?
Answer is:
3, 4, 5, 2, 1
Related Data structures and Algorithms MCQ with Answers
Answer is:
Complete binary tree
Answer is: