Term
peek (top)
The operation that returns the top element of a stack without removing it. Some books call it top.
The lesson that explains this term
Lessons that use this term
4.0What is a stack?4.2.4Peek: looking at the top4.4.1Stack: exam questions and answers5.1.4Peek: looking at the front5.3.4Peek: looking at the front5.3.5Array or linked list?5.4.1A queue with one pointer5.4.3Dequeue: removing the node after rear5.5.1What is a priority queue?5.5.3With an array: removing the highest priority5.5.5With a linked list: removing the highest priority