Teaching Haryana (HPSC) Assistant Professor Mock Test 2025 Algorithms Searching, Sorting and Hashing Searching
Consider the array L = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]. Suppose you’re searching for the value 3 using binary search method. What is the value of the variable last after two iterations?
1
14
2
2
3
6
4
3
5
Question Not Attempted