Arrays, hash maps, linked lists, stacks, queues, recursion, searching, sorting, trees, heaps, graphs, and dynamic programming in TypeScript — tied to where you meet them at work, and ready for technical interviews.
Every program is a pile of data plus a set of steps for working with it. Data structures are the ways we arrange the data, and algorithms are the steps. Pick the right pair and a page that crawls with 100,000 rows becomes instant. Pick the wrong pair and no amount of faster hardware will save you. These are also the topics technical interviews return to, because they show how you think when a problem has no obvious answer.
This series teaches them in TypeScript, and always with a "where do I meet this at work?" angle. Arrays and hash maps are behind every list and lookup table. Stacks power undo history and the call stack. Queues run background jobs. Trees are the DOM and the file system. Graphs are maps, social networks, and dependency lists. Heaps schedule tasks. You will build each of them yourself, so you understand what the built-in versions cost.
The first chapters cover the everyday structures: arrays and strings, hash maps and sets, linked lists, stacks and queues. The middle chapters cover the core techniques: recursion, searching, and sorting. The later chapters cover trees, heaps, graphs, tries and union-find, and finally greedy algorithms and dynamic programming. The last chapter turns it into a repeatable method for attacking an unfamiliar interview problem.
You won't just read about it. Across the series you build algolab,
a small TypeScript toolkit that runs in Node.js. Each chapter adds one
module with a few tests: a hash map, a linked list, a stack and queue, a
sorting collection, a binary search tree, a priority queue, a graph with
BFS and Dijkstra, a trie, and more. By the end you have a tested library
you wrote yourself.
You need to be comfortable with JavaScript and a little TypeScript from JavaScript & TypeScript Fundamentals, and with Big-O notation from Math for Programmers. You need Node.js (the LTS version) and a code editor such as Visual Studio Code. Nothing costs money.