Google coding interview prep

One hard problem, and they want to see how you think about it.

What the interview looks like

Google leans toward a single meatier problem per round, often with follow-ups that push you to generalise or optimise. Interviewers are trained to probe your reasoning, so an articulate path to a good solution frequently outweighs silently landing the perfect one.

What they reward

  • Depth over speed — expect follow-ups that change the constraints
  • Justifying why an approach is correct, not just that it passes
  • Graphs, dynamic programming, and search-space reasoning
  • Clean abstractions and naming

Patterns to drill first

Problems worth your time

In priority order. Open one to read the approach, or generate an interactive lesson and watch it run.

Tips

  • — Say the brute force out loud, give its complexity, then improve it — that path is the thing being graded.
  • — When you get a follow-up, restate the new constraint before you start solving it.
  • — Binary search on the answer shows up more than people expect. Learn to spot the monotonic predicate.

Practice these problems

Step through each problem above and watch every variable change as it runs.

Browse the lessons

Prepping for other companies

Our own editorial read on this loop, based on publicly reported experiences — not leaked or current question banks.