Sulabh Sethi · Blog ← Main Site

All tags / Data Structures

Tagged “Data Structures” (3)

DSARecursionTreesData StructuresExplainer

Recursion and Trees: When a Problem Contains Itself

11 June 2026 · Sulabh Sethi

Recursion looks scary but it is just a function that calls itself on a smaller piece, and the call stack does the bookkeeping. It is the natural tool for trees, the shape a document like a manual actually has.

DSAStacksQueuesData StructuresExplainer

Stacks and Queues: Two Ways to Wait in Line

10 June 2026 · Sulabh Sethi

The two simplest ways to decide what gets handled next: a queue (first in, first out) and a stack (last in, first out). Where each one shows up in real systems I have built, with examples.

DSAHash MapData StructuresExplainer

Hash Maps, Explained Simply

8 June 2026 · Sulabh Sethi

The single most useful data structure I reach for: the hash map. What it is, why lookups are instant, where I use it in real systems, and the catches to know about. No jargon.