🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Time & Space Complexity Quiz: all 8 questions

Time & Space Complexity Quiz · Question 4 of 8

Simplify the complexity 3n² + 5n + 100.

Simplify the complexity 3n² + 5n + 100.

  1. A.O(3n²)
  2. B.O(n²)
  3. C.O(n² + n)
  4. D.O(n)
Answer & explanation

Correct answer: O(n²)

Drop constants and keep only the fastest-growing term.

Can you get the rest right without peeking?

Take the timed Time & Space Complexity Quiz quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →