Algorithms track
Algorithms & data structures
A step-by-step path through algorithms and data structures. Each lesson explains what a technique is and when to use it, traces it by hand, then shows the code in JavaScript and Python.
Recommended order. Go top to bottom. Modules 1 to 3 are the base everything else stands on. After that, trees and graphs can be done in either order, but finish module 8 before dynamic programming.
-
Foundations
5 lessonsWhat an algorithm is, how to measure one, and how to start when you are stuck.
-
Arrays, Strings & Hashing
6 lessonsThe everyday tools: arrays, strings, hash maps, and the patterns built on them.
-
Linked Lists, Stacks & Queues
4 lessonsLinked lists, stacks and queues, and the problems each one is suited to.
-
Sorting & Searching
7 lessonsThe main sorting algorithms, and binary search on sorted data.
-
Trees
6 lessonsHierarchies, search trees, heaps and tries.
-
Graphs: Traversal
4 lessonsHow to represent a graph and traverse it with breadth-first and depth-first search.
-
Graphs: Paths & Connectivity
4 lessonsShortest paths, connected groups and cheapest networks.
-
Problem-Solving Techniques
5 lessonsGeneral techniques that apply to many problems, such as greedy choices, backtracking and divide and conquer.
-
Dynamic Programming
6 lessonsHow to break a problem into subproblems, store their answers and build the final answer from them.
-
Advanced Topics
3 lessonsSpecialised structures and techniques for problems the basic tools solve too slowly.