Where next

You have now seen the patterns behind most interview questions. The skill that matters is spotting which one a new problem needs. The program lists the signals from this chapter. Read a problem, find its signal, and you usually know the shape of the answer before you write any code.

Now practise on bigger problems:

  • The Algorithms challenges give you a problem statement and tests, like a real interview. "Merge bookings" uses the sort and sweep from the intervals page.
  • The Performance challenges hand you code that works but is too slow. Find the hidden O(n²) and fix it, just like the speed tests here.

When you practise, say the steps out loud: clarify, examples, brute force, improve, edge cases, complexity. Interviewers want to hear how you think.

Run it, then add a row for a pattern you know that is not in the list.