हिंदी

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

Advertisements
Advertisements

प्रश्न

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

विकल्प

  • 2

  • 7

  • 5

  • 4

MCQ

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×