Question

Which of the following sorting algorithms has the BEST average-case time complexity?

A Bubble Sort — O(n²)
B Insertion Sort — O(n²)
C Selection Sort — O(n²)
D Merge Sort — O(n log n)
E Gnome Sort — O(n²)
Practice Next

Relevant for Exams:

Hey! Ask a query