English

How many swaps required to swap [60, 41, 20, 7] using selection sort? -

Advertisements
Advertisements

Question

How many swaps required to swap [60, 41, 20, 7] using selection sort?

Options

  • 2

  • 7

  • 5

  • 4

MCQ

Solution

2

Explanation:

There are two swaps for choosing sort: 63, 42, 21, 9

1st swap: 9, 42, 21, 63

2nd swap: 9, 21, 42, 63

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

Englishहिंदीमराठी


      Forgot password?
Use app×