Part 4
Stack
14lessons1 h 30 min0done
A stack is a structure where elements are added and removed only at the top: the last one in is the first one out (LIFO). The undo button, the browser's back button and function calls all work this way.
The part first introduces the stack as an abstract data type. Then it codes the same operations twice: first with an array, then with a linked list. After comparing the two, it covers the classic stack applications and ends with exam questions.