Fetching data...
This may take a moment
Back
1672. Find the Index of the Large Integer
Medium
Array
Binary Search
Interactive
Solve on LeetCode
View Solutions
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.
Similar Questions
Search in a Sorted Array of Unknown Size
Medium
Statistics
Acceptance
56.5%
Submissions
31,370
Accepted
17,720