Skip to content

Data structures in TypeScript

A generic heap, an LRU cache, a trie and an immutable list — the same structures, but generic, so the types flow through.

Syllabus

Generic heap

LRU cache

Trie

Immutable list