Algorithms

Algorithms, explained from first principles.

Mental models, visual reasoning, complexity analysis, and implementation notes without template memorization.

Dynamic ProgrammingGraphsTreesComplexity
Abstract artwork

Knapsack merging without fear

A clean mental model for tree DP, budget states, and merging child subproblems without memorizing templates.

DSAPosted on Jul 16.8 min read
Visualization of a binary lifting jump table

Binary lifting finally visualized

Jump tables, kth ancestors, and LCA explained with the intuition first and the template second.

GraphsPosted on Jul 14.10 min read