Practice · Data structures and algorithms

Solve, don't watch.

39 classic problems grouped by pattern. Write JavaScript in the browser and run it against the tests. Solved problems come back after 3, 7, 14 and 30 days; the ones you got stuck on, the next day. No sign-up: progress stays in this browser.

0 / 39 solved

Up next

Give it 20 minutes of thinking before a hint. After solving, say the pattern and the complexity out loud.

Hash map 0 / 5

Two pointers 0 / 3

Sliding window 0 / 3

Stack 0 / 2

Linked list 0 / 3

Trees 0 / 3

BFS / DFS 0 / 2

Graphs 0 / 2

Heap 0 / 2

Backtracking 0 / 3

Intervals 0 / 2

Trie 0 / 1

Dynamic programming 0 / 6