Suppose we push the characters A, B, C, D (in this order) into a stack and…
Suppose we push the characters A, B, C, D (in this order) into a stack and then pop 4 times. Which of the following is not a possible output sequence?
- A.
DCBA
- B.
CDBA
- C.
CABD
- D.
ABDC
Attempted by 681 students.
Sign up free to check your answer
Sign up freeLoading lesson…