Define a stack
3 years ago
Data Structure and Algorithm
Stack is an ordered collection of elements in which insertions and deletions are restricted to one end. The end from which elements are added and/or removed is referred to as top of the stack. Stacks are also referred as piles, push-down lists and last-in-first- out (LIFO) lists.
Sanisha Maharjan
Jan 23, 2022