mid = low + (high - low)/2
Ending condition - if low == high + low / 2 (Using binary search)
findCandidate(a[], size)
n * (n + 1) / 2
There was an error while loading. Please reload this page.