STACK

LAST IN · FIRST OUT


prostudypk.com
A Pile of Plates: StackABCD TOP in / out Popped: operationtop itemsize
1. LIFOLast In, First OutLast in, first out
2. Operationspush(x): put on top · pop(): remove the toppeek(): just look at the top
3. MisaleinA pile of plates, the Undo buttonThe browser's Back button
COMPUTER SCIENCE · DATA STRUCTURES · PUNJAB BOARDS
‹ Labs Next ›