codedive
Visual algorithm learning — step through code, watch data structures animate.
145 problems·18 collections·26 easy·99 medium·20 hard
01
Arrays & Hashing
3E9M
02
Two Pointers
1E3M1H
03
Sliding Window
3M2H
04
Stack
1E5M1H
05
Binary Search
1E5M1H
06
Linked List
3E6M2H
07
Trees
6E7M1H
226Invert Binary TreeE104Maximum Depth of Binary TreeE543543. Diameter of Binary TreeE100Same TreeE572Subtree of Another TreeE110Balanced Binary TreeE102Binary Tree Level Order TraversalM199Binary Tree Right Side ViewM1448Count Good Nodes in Binary TreeM98Validate Binary Search TreeM230Kth Smallest Element in a BSTM235Lowest Common Ancestor of a Binary Search TreeM105Construct Binary Tree from Preorder and Inorder TraversalM124Binary Tree Maximum Path SumH
08
Tries
2M1H
09
Heap / Priority Queue
2E4M1H
10
Backtracking
7M1H
11
Graphs
11M1H
12
Advanced Graphs
3M3H
13
1-D Dynamic Programming
2E11M
746Min Cost Climbing StairsE121Best Time to Buy and Sell StockE198House RobberM213House Robber IIM5Longest Palindromic SubstringM647Palindromic SubstringsM91Decode WaysM322Coin ChangeM152Maximum Product SubarrayM139Word BreakM416Partition Equal Subset SumM494Target SumM300Longest Increasing SubsequenceM
14
2-D Dynamic Programming
5M3H
15
Greedy
8M
16
Intervals
1E3M1H
17
Math & Bit Manipulation
6E5M
18
Other
2M1H