Binary Search on a Circular Array
A developer is modifying a binary search algorithm to work with a circular array. Which modification is most appropriate?
A
Convert the circular array to a linear array first
B
Replace binary search with linear search for circular arrays
C
Adjust the midpoint calculation to account for array wrapping
D
Use recursion instead of iteration for all circular arrays
Question Leaderboard
Not enough data yet to show leaderboard.
APFIVE