Big O Complexity Cheatsheet
100% LocalInteractive reference for algorithm performance and complexity.
Big O Complexity Cheatsheet
The engineer's definitive guide to time and space complexity evaluation.
Time Complexity
How the runtime of an algorithm grows as the input size increases.
Space Complexity
The amount of extra memory used relative to the input size.
Click any algorithm to see its time and space complexity. Filter by data structure or operation type.
Learn More
What is Big O Complexity Cheatsheet?
Frequently Asked Questions
Technical Deep Dive
Big O Complexity Cheatsheet
A comprehensive guide to time and space complexity. Explore Big O notations from O(1) to O(n!) with practical examples and data structure operation comparisons.
Built for Devs
Designed by people who use these tools in production every day.
Smart Defaults
Reasonable assumptions out of the box, every assumption overridable when you need it.
Workflow-Friendly
Pairs with your IDE, CI, and code review, output drops into commits and PRs cleanly.
01 Growth Scale Matrix
| Notation | Name | 10 Items | 1M Items | Practicality |
|---|---|---|---|---|
| O(1) | Constant | 1 op | 1 op | Ideal |
| O(log n) | Logarithmic | 3 ops | 20 ops | Excellent |
| O(n) | Linear | 10 ops | 1M ops | Good |
| O(n log n) | Linearithmic | 33 ops | 20M ops | Scalable |
| O(n²) | Quadratic | 100 ops | 10¹² ops | Slow @ Scale |