Coding interview solutions & explanations

Free, worked solutions to 279 coding-interview problems — each with the problem statement, the pattern to recognize, a clear approach, runnable Python and Java code, and complexity analysis. Then practice every one in a real in-browser editor with instant test feedback.

Start practicing free →

Easy (94)

Medium (170)

Hard (15)

← Browse by pattern