Question · Python course · Module 2: Data Structures

Bubble Sort

What is the worst-case time complexity of Bubble Sort?

Answer options

  • O(n)
  • O(n²)
  • O(log n)
  • O(n log n)
Show the answer

Correct answer:

  • O(n²)