Q:Consider an empty stack STK of size 5 (array-based implementation). What will be the output after applying the following stack operations? Draw a diagram in support of your answer. How many elements are there in the stack at the end of the processing?
POP(), PUSH(9), PUSH(11), PUSH(25), POP(), POP(), PUSH(42), POP(), PUSH(3), PUSH(7), PUSH(30), PUSH(15), PUSH(54),POP(), PUSH(50)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here