Big-O Complexity Cheat Sheet

Use the Big-O Complexity Cheat Sheet as a fast, accurate reference for asymptotic growth rates, common data structure operation costs, and classic sorting and graph algorithm bounds. Compare how O(1), O(log n), O(n), O(n log n), O(n^2), O(2^n), and O(n!) behave as input sizes scale from tens to millions of elements.

Compare asymptotic growth rates and input limits

See practical operation budgets at a glance: why O(n^2) works for n = 1,000 yet times out at n = 100,000, why O(n log n) scales cleanly to millions of items, and why exponential O(2^n) or factorial O(n!) algorithms require pruning, memoization, or small input bounds.

Data structure and sorting complexity tables

Look up average-case and worst-case access, search, insertion, and deletion complexities for arrays, dynamic arrays, linked lists, stacks, queues, hash tables, binary search trees, balanced trees, heaps, tries, and graph representations, alongside time and space bounds for Quicksort, Mergesort, Heapsort, Timsort, BFS, DFS, and Dijkstra.

Apply complexity rules directly to your code

Review loop multiplication, sequential addition, recursive branching factors, and amortized analysis rules, then test your understanding inside the Code Playground or Big-O Analyzer.