Computer Science
Intermediate
Common Time Complexities
Ordering of common algorithmic growth rates.
Formula
Variables
nInput size
Example
For large n, an O(n log n) sort crushes an O(n²) one — e.g. millions vs trillions of steps.
Did You Know?
An O(n²) algorithm on a million items does a trillion operations — why algorithm choice matters enormously.