हिंदी

A list has 12 elements. How many passes will a bubble sort algorithm make to sort the list? -

Advertisements
Advertisements

प्रश्न

A list has 12 elements. How many passes will a bubble sort algorithm make to sort the list?

विकल्प

  • 12

  • 11

  • 6

  • 7

MCQ

उत्तर

11

Explanation:

To sort the list, n-1 passes are made, so for 12 elements, there will be 11 passes.

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

Englishहिंदीमराठी


      Forgot password?
Use app×
Our website is made possible by ad-free subscriptions or displaying online advertisements to our visitors.
If you don't like ads you can support us by buying an ad-free subscription or please consider supporting us by disabling your ad blocker. Thank you.