Coding Patterns
4 articles on coding patterns.
Coding PatternsThe Sliding Window Algorithm: The Pattern That Turns O(n²) into O(n) Overnight
I avoided the sliding window pattern for months, writing nested loops that timed out on every large test case. Here's the decision framework that finally made it click, with code templates and five practice problems in order.
Coding PatternsAdvanced Dynamic Programming: Multi-Dimensional States and Space Optimization
Learn how to solve multi-dimensional dynamic programming problems and optimize space from O(m*n) to O(n). Covers edit distance, knapsack, boolean states, and common mistakes with practical Python examples.
Coding PatternsI Solved 3 DP Problems With the Exact Same Template. Here It Is.
Every dynamic programming problem follows the same 4 steps: define the state, find the recurrence, set the base case, determine the answer. I prove it with three LeetCode classics.
Coding PatternsDynamic Programming: State + Transition, Not Memorization
Stop memorizing DP solutions. Learn the two-step framework (state + transition) that makes any dynamic programming problem approachable, with a full Coin Change walkthrough.
That's everything in Coding Patterns for now.
