हिंदी

What are the best and worst time complexity for bubble sort? -

Advertisements
Advertisements

प्रश्न

What are the best and worst time complexity for bubble sort?

विकल्प

  • Best: O(n), worst(O(n2))

  • Best: O(n2), worst(O(n2))

  • Best: logn, worst(O(n))

  • Best: nlogn, logn

MCQ

उत्तर

Best: O(n), worst(O(n2))

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

Englishहिंदीमराठी


      Forgot password?
Use app×