हिंदी

If the key to be searched is the last element in the list, then linear search algorithm will make how many comparisons? -

Advertisements
Advertisements

प्रश्न

If the key to be searched is the last element in the list, then linear search algorithm will make how many comparisons?

विकल्प

  • n(n + 1)/2

  • n - 1

  • n

  • n + 1

MCQ

उत्तर

n

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

Englishहिंदीमराठी


      Forgot password?
Use app×