Blog

Notes on data structures & algorithms, system design, and things I learn along the way.

Learning DSA? Follow the structured path — ordered articles from recursion to dynamic programming.→
July 9, 2026Graph Traversal: BFS and DFS Side by Side3 min read

Breadth-first and depth-first search are the same algorithm with one data structure swapped. See both walk the same graph, and learn which to reach for.

#DSA
July 8, 2026Recursion and the Call Stack: What Actually Happens3 min read

Recursion feels like magic until you see the call stack. Here's the mechanical picture — frames pushing and popping — plus base cases, stack overflows, and tail calls.

#DSA
July 8, 2026Two Pointers and the Sliding Window3 min read

Two of the highest-leverage array patterns in interviews and real code — how they turn nested O(n²) loops into a single O(n) pass, and when each one applies.

#DSA
July 7, 2026Prototypes and Inheritance: How JavaScript Objects Really Work6 min read

The prototype chain is the engine behind every JavaScript object and the class keyword is sugar on top of it — here's how the whole thing actually works.

#JavaScript
July 7, 2026The this Keyword: Four Rules That Explain Every Case4 min read

Why this is confusing in JavaScript and how four simple binding rules — plus arrow functions — determine its value in any situation.

#JavaScript
July 7, 2026Type Coercion and Equality: Making Sense of == in JavaScript5 min read

Why [] == ![] is true and other coercion puzzles — the actual rules behind == , truthiness, and the handful of habits that keep them from biting.

#JavaScript
July 6, 2026Binary Search and BSTs: Halving Your Way to O(log n)5 min read

How binary search eliminates half the problem with every comparison, and how binary search trees turn the same idea into a data structure — with interactive animations.

#DSA
July 6, 2026Closures in JavaScript: Private State, Loops, and Stale Values5 min read

What a closure actually is, how the scope chain makes it work, and the three places closures matter most — private state, the classic loop bug, and React hooks.

#JavaScript
July 6, 2026Debounce vs Throttle: Taming Event Storms in JavaScript4 min read

An interactive guide to debouncing and throttling — when to use each, how to implement them from scratch, and the edge cases that bite in production.

#JavaScript
July 6, 2026Hash Maps Under the Hood: Why O(1) Comes With an Asterisk5 min read

How hash maps actually work — hashing, buckets, collisions, and resizing — with an animated walkthrough and a from-scratch implementation.

#DSA

148 posts · page 14 of 15