Leetcode 747. Largest Number At Least Twice of Others
Given an integer array with a unique maximum, determine whether the largest element is at least twice every other element and return its index if so, otherwise return -1. (Equivalently: find the max and verify it is >= 2 * every other number.)
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.