My issue
What is the answer
My code
12536
Learning course: Binary Search
Problem Link: Multiple Choice Question Practice Problem in Binary Search - CodeChef
What is the answer
12536
Learning course: Binary Search
Problem Link: Multiple Choice Question Practice Problem in Binary Search - CodeChef
Based on your code the answer is 5, as the mid is 2.5 and for making it 0-based indexing we need to choose index 2, so the answer is 5.