Advertisements
Advertisements
प्रश्न
Binary search looks for the element to search in position:
विकल्प
First
Middle
Last
Any random
MCQ
Advertisements
उत्तर
Middle
Explanation:
- Binary search first checks the middle element of the sorted array.
- Based on the comparison, it searches either the left half or the right half.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 8: Arrays - Sort & Search - Exercises [पृष्ठ १९७]
