Stack | Push |
Pop | Peek |
The operation of adding an element to the top of the stack. | A data structure that follows the Last-In-First-Out (LIFO) principle. |
The operation of retrieving the topmost element from the stack without removing it. | The operation of removing the topmost element from the stack. |