हिंदी

In which of the following scenarios will you use a selection sort?

Advertisements
Advertisements

प्रश्न

In which of the following scenarios will you use a selection sort?

विकल्प

  • When you have to sort small number of large values

  • When you have to sort large number of small values

  • When the list is already sorted

  • For sorting huge files

MCQ
Advertisements

उत्तर

When you have to sort small number of large values

Explanation:

For small numbers of elements, regardless of element value, selection sort is ideal.

shaalaa.com
Selection Sort in Python
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×