1672. Find the Index of the Large Integer

Medium
Array
Binary Search
Interactive

Description

Hints

Hint 1
Do a binary search over the array, exclude the half of the array that doesn't contain the largest number.
Hint 2
Keep shrinking the search space till it reaches the size of 2 where you can easily determine which one has the largest integer.

Statistics

Acceptance
56.5%
Submissions
31,370
Accepted
17,720