Which sorting algorithm has best-case O(n) complexity?
13 views
- Merge sort
- Quick sort
- Insertion sort (Correct Answer)
- Heap sort
Explanation
Insertion sort performs in O(n) when array is already sorted.
Insertion sort performs in O(n) when array is already sorted.
No comments yet. Be the first to comment!
Explore thousands of MCQs across every exam category on Exams Nepal.
Find More MCQs