Coding Interview Preparation exercises with solutions

41 practice problems from the 13 lessons of the Coding Interview Prep course, in lesson order and from easy to hard inside each lesson. Open a problem, write your code and press Submit: the tests run in your browser and nothing is sent to a server.

14 easy problems 14 medium problems 13 hard problems

How coding interviews work

3 problems · Read the lesson

Arrays and hashing

4 problems · Read the lesson

Two pointers

3 problems · Read the lesson

Sliding windows

3 problems · Read the lesson

Stacks and queues

3 problems · Read the lesson

3 problems · Read the lesson

Linked list patterns

3 problems · Read the lesson

Binary trees

3 problems · Read the lesson

Graph patterns

3 problems · Read the lesson

Heaps and intervals

4 problems · Read the lesson

Dynamic programming patterns

3 problems · Read the lesson

Backtracking

3 problems · Read the lesson

The mock interview

3 problems · Read the lesson