हिंदी

What would be the running time of an insertion sort for a pre-sorted list? -

Advertisements
Advertisements

प्रश्न

What would be the running time of an insertion sort for a pre-sorted list?

विकल्प

  • O(n2)

  • O(nlogn)

  • O(n)

  • None of these

MCQ

उत्तर

O(n)

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

Englishहिंदीमराठी


      Forgot password?
Use app×