Skip to content

Coding patternsTrees, graphs and heaps

Coding patterns for trees, graphs and heaps

Depth-first and breadth-first traversal, topological sort, the heap and the trie: how to walk a structure, find shortest paths, order dependencies, keep the best k items and look up prefixes.