Intermediate · 30 minYou are hereRead
Stacks
A stack adds and removes items only at its top, last in, first out. Built here on an array with a top index, then on linked nodes; every operation takes the same few steps.
Lists, stacks and queues
Related topics