FizzBuzz
Recognize the pattern
Brute force idea
The naive version of FizzBuzz sounds like this: No simpler alternative — this IS the straightforward approach. That direct path helps you understand the question, but it tends to treat every possibility as brand new instead of learning from earlier steps.
Better approach
A calmer way to see FizzBuzz is this: Iterate 1 to n, check divisibility by 15, 5, 3 in that order. The goal is not to be clever for its own sake, but to remember the one relationship that keeps the solution grounded as you move forward.
Key invariant
The truth you want to protect throughout FizzBuzz is this: Check the most specific condition first (divisible by both 3 AND 5) before individual checks. If that remains true after every update, the rest of the reasoning has a stable place to stand.
Watch out for
A common way to get lost in FizzBuzz is this: Checking 3 and 5 before 15 — a number divisible by both matches the first condition it hits. Most mistakes here are not about syntax; they come from losing track of what your state, pointer, or structure is supposed to mean.