Question DSA-SRCH-0025
EasyWhat does a typical binary search function return when the target is not in the array?
- A.
The last index
- B.
The middle index
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Searching and Binary Search question
What does a typical binary search function return when the target is not in the array?
The last index
The middle index
Sign up free to see the answer and a step-by-step explanation.
−1 (or another 'not found' signal)
0