Practice in the browser
Microsoft coding interview problems
Microsoft rounds tend toward the classics: linked lists, strings, and trees, with an emphasis on correctness and edge cases rather than exotic tricks.
Commonly emphasisedLinked listsTrees and BSTStrings
These problems commonly appear in Microsoft coding interviews based on widely shared public reports. They are not an official list and not leaked questions, and interview content varies by team and level. Use the set to focus your practice on the patterns Microsoft tends to favour, then solve each one in the live editor.
easy
6 problemsmedium
3 problemsFrequently asked questions
- Are these the exact questions Microsoft asks?
- No. These are problems that commonly appear in Microsoft coding interviews as reported across public community sources, chosen to match the patterns Microsoft tends to favour. Interview content varies by team, role, and time, so treat this as a focused practice set rather than a question leak.
- How should I practise these?
- Open each problem, attempt it cold for twenty to thirty minutes, and run it against the test cases. If you get stuck, work out the optimal approach, then close the editor and re-solve from scratch the next day. Being able to reproduce a solution unaided is what carries into the interview.
- Which language should I use?
- Use the language you will interview in. The editor runs JavaScript, TypeScript, and Python in your browser, and Java, C, and C++ in a sandbox, so you can rehearse in your real stack.