In binary search, the array must be _______ to ensure correct results.

  • Reversed
  • Shuffled
  • Sorted
  • Unsorted
In binary search, the array must be sorted to ensure correct results. Binary search relies on the property of a sorted array to efficiently eliminate half of the remaining elements in each step.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *