LESSON 02 / 15

Stack

A stack is last-in, first-out (LIFO): you push onto the top and pop from the top — like a stack of plates. Perfect for undo, back buttons and matching brackets.

🎓Hardlevel
⏱️14 minto finish
✏️2activities

📂 Data Structures🏷️ Data structures

🔒

You’ve finished your free lessons! 🎉

Create a free account to unlock every lesson, save your progress, keep your streak and get personal review suggestions. It takes 20 seconds.