Tries for shared string prefixes
Some problems are fundamentally about relationships between numbers or nodes. […]
Some problems are fundamentally about relationships between numbers or nodes. […]
Most people learn binary search as “finding a value in a sorted array” and stop there, which means […]
Chapter 13 dealt with pure connectivity questions — is there a path, is there a cycle, can I […]
Graphs are the pattern chapter where interviewers stop asking “can you code” and start asking “can you model.” […]
A stack is the simplest data structure in this book — push, pop, peek, and you’re done — […]
Linked lists show up in interviews less because they’re common in production code — most languages give you […]
Some array problems come with a gift hidden in the constraints: the values in the array are drawn […]
Merge intervals problems all share one underlying object: a collection of ranges, each with a start and an […]
Space complexity follows the same growth-rate logic as time complexity, but measures memory instead of operations, and candidates […]
A dynamic array sometimes has to copy all its elements, yet we say appending is O(1). Amortized analysis […]