← All resources
Resources · Comp coding

Algorithms & DSA,
the theory.

The algorithm theory behind the problems: complexity analysis, sorting & searching, recursion, graph algorithms, and greedy vs DP. Pair it with the LeetCode Patterns catalog for problems to drill. Tick a topic once you can explain and analyse it.

6Modules
5Graph algorithms
24Topics

1Complexity & analysis

0/3

Every answer ends with "…so it's O(n)". Being fluent in Big-O and able to justify it is table stakes.

Reason about cost

2Sorting & searching

0/4

You rarely re-implement these, but you must know their tradeoffs and when each wins.

Know the tradeoffs

VisuAlgo — Sorting — animated.

3Recursion, divide & conquer, backtracking

0/3

The engine behind trees, permutations, and "try all options with pruning".

Core techniques

Python Tutor — step through the stack visually.

4Graph algorithms

0/5

A dense, high-value area. Know the core traversal and shortest-path/ordering algorithms and when each applies.

The essential graph toolkit

5Greedy & dynamic programming

0/3

The two big optimisation paradigms. The interview skill is recognising which one applies and proving the greedy choice is safe.

Optimisation paradigms

6Where to drill

0/3

For the pattern-by-pattern problem catalog, use the LeetCode Patterns page; this page is the algorithm theory behind it.

Practice

Theory here, problems in the Patterns catalog · always state the complexity and why. All links open in a new tab.