psychology
Data Structures & Algorithms
Patterns, complexity, and trade-offs properly indexed.
11patterns
Core DSA Patterns
#001
FoundationMechanics
Core Operations
The mechanical foundation beneath every pattern. Mastery of operational precision.
open_in_newOpen Sketch
#002
ArrayPrefix Sum
Arrays & Prefix Techniques
Precompute information to answer queries efficiently
open_in_newOpen Sketch
#003
ArrayString
Two Pointers
Reduce nested loops by maintaining controlled window boundaries
open_in_newOpen Sketch
#004
ArrayString
Sliding Window
Track dynamic subarrays or substrings efficiently
open_in_newOpen Sketch
#005
HashMapSet
Hashing & Frequency Maps
Trade space for time using constant-time lookups
open_in_newOpen Sketch
#006
SearchLogN
Binary Search
Apply monotonic logic beyond sorted arrays
open_in_newOpen Sketch
#007
RecursionDFS
Recursion & Backtracking
Explore state spaces with controlled branching
open_in_newOpen Sketch
#008
TreeDFSBFS
Trees
Hierarchical data and traversal strategies
open_in_newOpen Sketch
#009
GraphDFSBFS
Graphs
Model relationships and dependencies
open_in_newOpen Sketch
#010
Heap
Heaps & Priority Queues
Efficiently track min/max elements
open_in_newOpen Sketch
#011
DP
Dynamic Programming
Optimize overlapping subproblems with state transitions
open_in_newOpen Sketch
Pattern Philosophy
- ✓Patterns are reusable thinking tools
- ✓Most problems combine multiple patterns
- ✓Focus on invariants and constraints
- ✓Always analyze time and space trade-offs
Algorithms are about constraints, not cleverness.
What Comes Next?
drawPattern deep dives
drawProblem breakdowns with trade-offs
drawMachine coding integration
drawDesign thinking overlays