Apr 18, 2026
In a stack data structure, is the last element inserted always the first one to be removed?
Correct
Answer given
yes
Answer
Yes. This is the LIFO (Last In, First Out) principle that defines how a stack operates.
Ash's grade
Correct — stacks follow LIFO (Last In, First Out).