Typorithm learning path
Patterns
Coding-interview patterns — two pointers, sliding window, frequency counter, and time complexity.

Your learning path
0 of 41 topics completed
Saved on this device
Unit 1 · 10 topics
Basic Patterns
Learn reusable coding patterns that appear inside algorithms and interview tasks.
Swap Pattern
easy · 4 activities
Frequency Counter Intro
easy · 3 activities
Two Pointers Intro
easy · 3 activities
Time Complexity Intro
easy · 2 activities
Sliding Window
medium · 9 activities
Fast & Slow Pointers
medium · 9 activities
Prefix Sums
easy · 9 activities
Binary Search on Answer
hard · 9 activities
Recursion Basics
easy · 9 activities
Divide & Conquer
medium · 9 activities
Unit 2 · 5 topics
Two Pointers
Converging and greedy pointer scans — palindromes, sorted pair sums, 3Sum, and trapped water.
Unit 3 · 5 topics
Sliding Window
Expand-and-contract windows — best trade, longest unique substring, char replacement, and min window.
Unit 4 · 5 topics
Monotonic Stack
Stacks that stay ordered — next greater, histogram rectangles, car fleets, stock spans, and k digits.
Unit 5 · 4 topics
Intervals
Timeline sweeps — merge, insert, minimum removals, and peak-concurrency room scheduling.
Unit 6 · 5 topics
Prefix Sums
Cumulative sums for O(1) range queries — subarray-sum counts, products, pivots, and balance.
Unit 7 · 4 topics
Binary Search on Answer
Search a numeric answer space by a monotonic predicate — Koko, shipping, splits, and bouquets.
Unit 8 · 3 topics
Memoization
Cache pure function results — a memoize() HOF, composite cache keys, and memoized recursion that turns O(2^n) into O(n).