PA of Algorithms Q101

0. Which one the following in place sorting algorithms needs the minimum number of swaps?

  • Option : C
  • Explanation :
    Minimum no of swap for selection sort is O when array is already sorted and maximum swap is Q(n).
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *