Multiple choice

When would it be good idea to use bubble sort?

  1. As a place holder, until you implement something else.

  2. Any of these

  3. In a database

  4. Anywhere you have a large database that needs sorting.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Bubble sort has a high time complexity (O(n^2)) and is generally inefficient for large datasets. It is primarily used for educational purposes or as a simple placeholder when performance is not a concern.