← all tracks/Puzzle Workshop: Champion

Breaking It Down: Think Like a Solver

Breaking It Down: Think Like a Solver 🧩

The training wheels come off. From here on, problems tell you WHAT they want — figuring out HOW is the fun part. Good news: you already own every tool you need. This unit teaches the master skill of using them together.

The solver's four questions

When a problem looks big, don't panic — interrogate it:

  1. What exactly am I given?
  2. What exactly should come out?
  3. What are the steps in between?
  4. Which steps deserve their own function?

A big problem is just several small problems in a trench coat. "Plan the party" is really slices→pizzas, guests→packs, add the costs, check the budget — four one-liners holding hands.

Simulations

Some problems unfold over TIME: a ball bouncing, savings growing, a boss losing hit points. For those, ask two questions: what changes each step? and what makes it stop? — then a while loop writes itself.

When the HOW needs an idea

The last stretch of this unit needs real ideas: grab-the-best-first (greedy), build-a-running-total (prefix sums), and the ever-honest try everything. Sometimes the clever answer is realizing the computer can test every option before you finish sharpening your pencil.

Nothing here tells you which pattern to use. That's not the training wheels falling off — that's you, riding. 🚴

# problems