Loading lessons…
Loading lessons…
Learn how common data structures organize information and how algorithms use those structures to solve problems. Topics include searching, sorting, recursion, trees, graphs, hash tables, linked lists, stacks, queues, and asymptotic growth. The lessons compare operations, explain trade-offs, and show how input size changes the work an algorithm performs. Interactive visualizations make traversal, recursion, and capacity changes easier to follow step by step. Browse the linked previews to understand the core operation, compare related techniques, and review key complexity ideas before continuing to the full lesson and practice.
Compare common algorithm growth rates from logarithmic to factorial using operation counts.
Compare linear search and insertion sort across favorable, unfavorable, seeded random, and adversarial inputs.
See how a doubling strategy resizes a dynamic array and makes append constant-time amortized.
Explore nodes, next pointers, constant-time head insertion, and linear traversal.
Compare last-in-first-out stacks with first-in-first-out queues by tracing their operations.
See how hashing maps keys to buckets, chaining handles collisions, and load factor describes occupancy.
Trace how binary search halves a sorted range and compare its probes with log2 n.
Compare bubble, insertion, and selection sort by tracing comparisons and swaps on the same input.
Trace divide-and-conquer sorting, recursion trees, merge comparisons, and selectable quicksort pivots.
Watch factorial and naive Fibonacci calls grow and return, revealing repeated Fibonacci work.
Trace BST insertion, search, deletion, and in-order traversal, including a degenerate sorted insertion.
Watch a min-heap insert by sifting up and extract its minimum by sifting down, in tree and array views.
Compare BFS queue order with DFS stack order on a seeded random graph, including disconnected components.