Consider the following array. Which algorithm among the given options uses the…
PYQ Tech Mahindra Hiring Assessment 2023
Consider the following array. Which algorithm among the given options uses the least number of comparisons (among the array elements) to sort the array in ascending order?

- A.
Insertion sort
- B.
Selection sort
- C.
Quicksort using the last element as pivot
- D.
Merge sort
Attempted by 191 students.
Sign up free to check your answer
Sign up freeLoading lesson…

