Part 1Getting started: how fastCounting steps, Big O, where log n comes from, and what each STL container's operations cost.4 lessons · 1 h
Part 2Arrays and linked listsClasses, pointers, new and delete; arrays and vector: indexing, inserting, deleting, how size and capacity grow; linked lists by hand, then std::list.8 lessons · 2.5 h
- Lesson 5Objects, pointers and references22 minStart
- Lesson 6Arrays and vector: straight to an index18 minStart
- Lesson 7Inserting and deleting in an array20 minStart
- Lesson 8Arrays that grow: vector20 minStart
- Lesson 9Linked lists: nodes and pointers15 minStart
- Lesson 10Inserting and deleting in a linked list16 minStart
- Lesson 11Doubly linked and circular lists17 minStart
- Lesson 12Patterns: arrays and linked lists20 minStart
Part 3Stacks and queuesArray and linked stacks, matching brackets, postfix expressions, circular queues, and stack, queue, deque and monotonic stacks.5 lessons · 1.5 h
Part 4Hash tablesHash functions, open addressing, chaining and resizing, and unordered_map's buckets and load factor.4 lessons · 1 h
Part 5TreesBinary trees and recursion, four traversals, rebuilding a tree, binary search trees with set and map, a heap by hand and then priority_queue, heap sort and top-k, Huffman coding, every step drawn on the tree.8 lessons · 2.5 h
- Lesson 22Binary trees and recursion20 minStart
- Lesson 23Four ways to walk a binary tree20 minStart
- Lesson 24Rebuilding a tree from its traversals18 minStart
- Lesson 25Binary search trees, set and map22 minStart
- Lesson 26Heaps and priority_queue18 minStart
- Lesson 27Heap sort and top-k18 minStart
- Lesson 28Huffman trees and Huffman codes16 minStart
- Lesson 29Patterns: trees20 minStart
Part 6GraphsAdjacency matrices and lists (vector<vector<…>>), BFS and DFS, topological sort, Dijkstra with priority_queue, Prim and Kruskal (union-find), every step drawn on the graph.7 lessons · 2 h
- Lesson 30Storing a graph: adjacency matrix and list17 minStart
- Lesson 31Breadth-first search (BFS)17 minStart
- Lesson 32Depth-first search (DFS)17 minStart
- Lesson 33Topological sort16 minStart
- Lesson 34Shortest paths: Dijkstra20 minStart
- Lesson 35Minimum spanning trees: Prim and Kruskal20 minStart
- Lesson 36Patterns: graphs18 minStart
Part 7SearchingSequential and binary search, binary search bounds and lower_bound / upper_bound, balanced trees (AVL rotations, red-black trees), and binary search on the answer.4 lessons · 1 h
Part 8SortingBubble, selection, insertion, Shell, merge, quick, counting and radix sort, each run for real with its comparisons counted; then std::sort, stable_sort and comparators.6 lessons · 2 h
Part 9Algorithm designRecursion and divide and conquer, backtracking (next_permutation), greedy, dynamic programming and knapsack problems: recursion trees, search trees and DP tables drawn box by box.6 lessons · 2.5 h
Questions
Is it really free?
Yes. Every lesson, example and exercise is free, with no sign-up.
Do I need to know C++ first?
A little: variables, loops, functions, vector and string, ideally classes too. If not, start with our C++ course.
How is it different from the C and Python editions?
The same chapters, taught the C++ way: each structure by hand with classes and pointers first, then the STL container or algorithm that does it, and what it costs.
Where is my progress kept?
In this browser, with no account.