Skip to content
Lydia Hallie theavocoder
Track

Algorithms and Data Structures

Learn how to implement sorting algorithms and data structures in JavaScript, and how to reason about the cost of each choice.

How to read this track

Start with the cost, then the structure

Big O is the language we use to compare approaches. Once the notation is familiar, sorting algorithms and data structures become easier to reason about.

The code in these pages is plain JavaScript. Open your console and run it as you read. The goal is not memorizing the implementations, but seeing why each one behaves the way it does.