Quiz: Binary Search Mistakes

Test your understanding

Check Your Understanding

What causes an infinite loop in binary search?

  1. A.Setting left=midleft = mid with floor division and right=left+1right = left + 1
  2. B.Target not in array
  3. C.Array has duplicate elements
  4. D.Using <=<= instead of << in the while condition
Start the roadmap to answer the quizzes and solve the challenges