Learn to think like a senior engineer: Pattern recognition → Mental models → Production systems
New here? Start at patterns/README.md
- Learn Patterns: Study 29 algorithmic patterns with mental models
- Build Systems: Explore production applications combining patterns
- Practice: Solve LeetCode problems organized by pattern
🎯 Patterns - Learn to Think
29 algorithmic patterns teaching you to recognize and solve problems:
- 📏 Linear Structures (01-08): Sliding Window, Two Pointers, Fast/Slow, Merge Intervals, Cyclic Sort, Monotonic Stack, Prefix Sum, Line Sweep
- 🌳 Trees & Graphs (09-15): Tree Traversals, BFS, DFS, Topological Sort, Union Find, Trie, Shortest Path
- 🎯 Search (16-18): Binary Search, Top K/Heap, K-way Merge
- 🔀 Combinatorial (19-24): Backtracking, DP, Greedy, Branch & Bound, CSP, Partitions
- 🔧 Advanced (25-29): Bit Manipulation, String Matching, Segment Tree, Fenwick Tree, Suffix Array
Each pattern includes:
- ⚡ Self-check questions (can I recognize this?)
- 🧠 Mental model & 4-stage thinking pipeline
- 🎯 Decision trees (when to apply)
- 💭 Internal monologue (how to think through it)
- 📊 Mermaid diagrams
- 🏭 Real-world production uses
- 📝 LeetCode problems by difficulty
🏭 Applications - Learn to Build
Production implementations showing how patterns combine:
- 🗓️ Scheduling: Weighted intervals, task dependencies, EDF, interval partitioning (Greedy + DP + Graphs)
- 🧩 Constraint Satisfaction: N-Queens, Sudoku, graph coloring, AC-3 (Backtracking + CSP)
- ⚖️ Partitions: Subset sum, equal partition, K-partition, balanced partition (DP + Backtracking)
- 🎯 Optimization: TSP B&B, Knapsack B&B, job scheduling (Branch & Bound + DP)
algorist/
├── patterns/ # 29 algorithmic patterns (START HERE!)
├── applications/ # Multi-pattern production systems
├── algorithm-books/ # Reference materials (submodule)
├── archive/ # Legacy content
└── docs/ # Documentation
Only 5 directories at root - clean and obvious!
Primary: Patterns · Applications
Docs: CLAUDE.md · Reorganization
Popular Patterns: 01 Sliding Window · 02 Two Pointers · 10 BFS · 19 Backtracking · 20 DP · 21 Greedy
Ready to start? → patterns/README.md 🚀