In a binary search, with an even amount of numbers, will the algorithm choose the higher or lower middle number?
So if the array is:
15 18 18 21 26 31 36 38
Then will it start by looking at 21 or 26?
So if the array is:
15 18 18 21 26 31 36 38
Then will it start by looking at 21 or 26?
Comment