Which notation is used to express the time complexity of an algorithm?

- O(n) (Answer)
- S(n)
- P(n)
- F(n)
The correct answer is: $O(n)$
Big O notation describes how an algorithm’s cost grows with the size n of its input: binary search is O(\log n), bubble sort O(n^2). The German mathematician Paul Bachmann introduced it in 1894; the O stands for Ordnung, ‘order’.
More on Wikipedia · From the quiz of Wednesday, 11 November 2026