Searching Algorithms: Binary Search - Typical Problems

Download Q&A
Q. How does binary search determine the middle index of an array?
  • A. (low + high) / 2
  • B. low + high
  • C. low * high
  • D. high - low
Q. What is the result of binary search if the target is less than the middle element?
  • A. Search the left half
  • B. Search the right half
  • C. Return the middle element
  • D. End the search
Showing 1 to 2 of 2 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely