Question: What is the time complexity of a bubble sort algorithm in the worst case?
Options:
Correct Answer: O(n^2)
Solution:
Bubble sort compares adjacent elements and requires O(n^2) time in the worst case.