# Redo, the Back Button and Matching Brackets: Stacks at Work

Three everyday features need the most recent thing first: redo, a browser's back and forward buttons, and checking that brackets match. See why throwing things away, searching and counting fall short, and solve all three with stacks.

![Cheat sheet: Redo, the Back Button and Matching Brackets: Stacks at Work](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/845377b143734033bb68f58f5547ed77.webp)

- Category: Data Structures
- Level: Apprentice
- Tags: "Last In", "First Out", data structures, Push and Pop, stack
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/ds-stacks-at-work-cheat-sheet
