Skip to content

Milestone 3: LIFO & FIFO (Stacks & Queues)

🟦 Milestone 3: LIFO & FIFO (Stacks & Queues)

In the real world, we often restrict how we access data to make things safer or more orderly. These “Restricted” linear structures are the Stacks and Queues.

📚 Slow-Paced Deep Dives (University Modules)

🥅 Milestone Goals

  1. Implement Push and Pop operations on a Stack.
  2. Implement Enqueue and Dequeue operations on a Queue.
  3. Use a Stack to solve the Balanced Parentheses problem.
  4. Understand how Recursion uses the internal System Stack.

:::tip Real World Use Your browser’s “Back” button is a Stack. A printer’s waiting list is a Queue. You use these every day! :::