View on GitHub

Notes

reference notes

Computational and Asymptotic Complexity

Differentiating Between Performance and Complexity

Big-O Notation

How to Determine Complexities

Common Big-O Functions

Big-O Complexity Chart

O(1) Constant Time

O(n) Linear Time

O(n²) Quadratic Time

O(log n) Logarithmic Time

Understanding Big O notation is important in writing algorithms. It helps you determine when your algorithm is getting faster or slower and allows you to compare different methods to choose the most efficient one.