...

/

Time Complexity Order

Time Complexity Order

Let’s learn about various commonly used complexity functions along with their usage.

Algorithms’ time complexity

The following table clarifies big-OO representations of different time complexity functions.

Name Notation
Constant O(1)O(1)
Logarithmic O(log(n))O(log(n))
Linear O(n)O(n)
Quadratic O(n2)O(n^2)
Polynomial O(nc)O(n^c)
...