// the knowledge base
Explore everything.
Every article, writeup and note across the platform — filter by world, difficulty, author or tag, sort your way, and save what matters.

🧠 DSA & Programming
Advanced
Dynamic Programming: The 4 Patterns That Repeat
Almost every DP problem I have solved is one of four shapes. Learn to recognize the shape first, then the recurrence writes itself. With worked examples and the space-optimization moves.
Sandesh BramhaneAug 15, 2026
#dsa#dynamic-programming#algorithms1 min1602

🧠 DSA & Programming
Intermediate
Mastering the Two-Pointer Pattern in DSA
Two pointers turns O(n²) brute force into O(n) — when the problem is sorted or order-preserving. The three sub-patterns, the exact conditions that unlock each, and worked solutions in C++ and JS.
Sandesh BramhaneJul 28, 2026
#dsa#algorithms#arrays1 min9002