Six lessons from the course Competitive programming, made from the book Competitive Programmer's Handbook (Antti Laaksonen, CC BY-NC-SA 4.0; translated and extended by Boban Blagojević, same license). Each lesson has C++ examples that run (CodeLab) and flowcharts that run step by step (the algorithm plugins), so the same pages show both families of plugins.
| Lesson | What to try |
|---|---|
| 3.1 Sorting theory | The bubble sort flowchart: Step, Back and the arrays panel; Complexity… shows O(n²), merge sort O(n log n). |
| 3.3 Binary search | Flowchart: the timeline slider and the arrows over the array; C++: Run with your own input. |
| 7.1 Coin problem | Dynamic programming: the trace table and an array that fills up. |
| 8.1 Two pointers method | Two indexes (arrows) moving through the array. |
| 9.1 Static array queries | Prefix sums: reading and writing the cells of an array. |
| 21.1 Primes and factors | The sieve of Eratosthenes and the code of a flowchart in other languages (Code button). |