Hide Index
Stack
0% completed
Introduction to stacks
Array implementation of stacks
Linked list implementation of stacks
Infix, Postfix and Prefix notations
Evaluating expressions using stack
Converting expressions using stack
Pattern: Reversal
Pattern: Previous closest occurrence
Pattern: Next closest occurance
Pattern: Sequence validation
Pattern: Linear evaluation
Certificate
Checking if the stack is empty
As the name suggests, this operation tells the caller if the stack is empty or some items are already in it. It will return true if the stack is empty and false otherwise. We can check if the stack size equals 0 to implement this operation.
Loading Image
Operation to check if the stack is empty
Algorithm
Liking the course? Check our discounted plans to continue learning.