Podcast
Questions and Answers
What is a stack?
What is a stack?
A stack is a linear data structure that follows the LIFO (Last-In-First-Out) principle.
How many ends does a stack have?
How many ends does a stack have?
A stack has one end.
What happens when we try to delete an element from an empty stack?
What happens when we try to delete an element from an empty stack?
Underflow condition occurs.
How is an element added to a stack?
How is an element added to a stack?
Signup and view all the answers
What happens when we try to insert an element to a fully filled stack?
What happens when we try to insert an element to a fully filled stack?
Signup and view all the answers