Largest Number At Least Twice of Others Solutions in PythonNumber 747Difficulty EasyAcceptance 42.1%Link LeetCodeOther languages C++SolutionsPython solution by haoel/leetcodedef dominantIndex(self, nums): i = nums.index(max(nums)) l = nums[i] del nums[i] if not nums: return 0 return i if l >= 2 * max(nums) else -1def dominantIndex(self, nums): i = nums.index(max(nums)) l = nums[i] del nums[i] if not nums: return 0 return i if l >= 2 * max(nums) else -1