Question DSA-STK-0022
EasyWhich operation removes the top element of a stack?
- A.
enqueue
- B.
pop
- C.
Show answer and explanation
Answer: B
pop removes and returns the most recently pushed element.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Stacks question
Which operation removes the top element of a stack?
enqueue
pop
Answer: B
pop removes and returns the most recently pushed element.
peek
push