Microsoft coding interview prep

Fundamentals done well — trees, linked lists, and clear code.

What the interview looks like

Microsoft loops tend to favour classic data-structure fundamentals over competitive-programming trickery. Expect trees, linked lists, strings, and a strong emphasis on writing code you'd be willing to ship, including how you'd test it.

What they reward

  • Core data structures: trees, linked lists, strings
  • Code quality and testability, not just correctness
  • Talking about edge cases and how you'd verify the solution
  • Practical design sense even in coding rounds

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

  • — Pointer manipulation on linked lists comes up a lot — practise reversal until it's muscle memory.
  • — Mention how you'd unit-test the function. It lands well here in a way it doesn't everywhere.
  • — Don't skip the easy classics; a shaky `invert-binary-tree` is a bad signal.

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.