Physics I / Complexity and efficiency basics
Practice question · True or false

O(n2)O(n^2) simplifies to O(n)O(n) in Big-O notation, since constant factors are dropped.

Hints
  1. Is the 2 a factor or an exponent?
  2. O(2n)O(2n) and O(n2)O(n^2) are different claims.
Show the answer

False

Why

False. Big-O drops constant multipliers, so O(2n)=O(n)O(2n) = O(n), but n2n^2 is a different growth class entirely and never reduces to nn. Confusing a coefficient with an exponent is the single most common Big-O error, and it changes the answer by orders of magnitude at scale.

Read the lesson: Complexity and efficiency basics →

Practise Complexity and efficiency basics

The app has 8 more questions on this lesson, and keeps your place in the course. Physics I is free to start.

More questions on Complexity and efficiency basics