Which of the following has a worst-case time complexity of O(n²)?
Correct answer
A. Bubble sort
A. Bubble sort
The answer is Bubble sort.
Asked in: Engineering Computer Engineering Practice
https://en.wikipedia.org/wiki/Data_structureNot sure why the answer is A? Ask here and get an explanation.