English

How many swaps does selection sort perform in worst case? -

Advertisements
Advertisements

Question

How many swaps does selection sort perform in worst case?

Options

  • N - 1

  • N*(N - 1)/2

  • N!

  • N2

MCQ

Solution

N - 1

shaalaa.com
Selection Sort
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×