Q11hard
(Code Output / Logic) Trace a Binary Search on the sorted array [2, 5, 8, 12, 16, 23, 38, 56, 72, 91] to find the target 23. What is the value of the mid element in the first iteration?
Topic-wise practice questions for Problem Solving & Analytical Skills. Test your knowledge, check solutions on demand, and pace your preparation.
Fibonacci? fib(n): return fib(n-1) + fib(n-2)