Algorithms and Data Structures · Junior · Question 1 of 75

What does Big O notation describe?

Explanation

Big O describes the growth rate: how the cost changes when n grows, ignoring constants and lower-order terms. It says nothing about absolute time on a specific machine: an O(n) loop can be slower than an O(n²) one for small inputs.

Further reading

Problem with a question

Algorithms and Data Structures · Junior · question 1

Test yourself

Take the Algorithms and Data Structures · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz