Question DSA-SRCH-0037
EasyIn [1, 3, 5, 5, 8], what is the index of the first element that is ≥ 5 (the lower bound)?
- A.
2
- B.
4
- 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
In [1, 3, 5, 5, 8], what is the index of the first element that is ≥ 5 (the lower bound)?
2
4
Sign up free to see the answer and a step-by-step explanation.
1
3