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?

  1. A.

    Insertion sort

  2. B.

    Selection sort

  3. C.

    Quicksort using the last element as pivot

  4. D.

    Merge sort

Attempted by 191 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…