Data Structures19 sections · 729 units
Open in CourseQuiz: Stack Basics
LIFO behavior
Check Your Understanding
If you push 1, 2, 3 onto a stack (in that order) then pop twice, what remains on the stack?
- A.3
- B.1
- C.2, 3
- D.1, 2
LIFO behavior
If you push 1, 2, 3 onto a stack (in that order) then pop twice, what remains on the stack?