In a sorted array, return the value that fills more than half of it, or -1 if there is none — in logarithmic time.
In a sorted array, return the value that fills more than half of it, or -1 if there is none — in logarithmic time.
Opens with the full question.