Algorithm Cheat Sheets
One-page references for the questions that come up in every course and interview. The tables are generated from the same data that drives the visualizers, and each algorithm links to an animation you can step through.
- How fast does it grow?Big O Time Complexity Cheat SheetEvery complexity class from O(1) to O(n²) with operation counts at n = 10, 100 and a million, then the time and space cost of every algorithm and data structure on the site.
- Which sort should I use?Sorting Algorithms Cheat SheetBest, average and worst case for each sort side by side, plus stability, memory use and a short guide to picking one for small, nearly sorted or worst-case-sensitive data.
Want to see the numbers happen? Browse all algorithm visualizers.