🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Sorting Basics: all 13 questions

Quiz: Sorting Basics · Question 6 of 13

How much extra memory do bubble, selection and insertion sort need?

How much extra memory do bubble, selection and insertion sort need?

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

Correct answer: O(1)

All three sort in place, using only a few variables.

Can you get the rest right without peeking?

Take the timed Quiz: Sorting Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →