# Largest Number At Least Twice of Others (LeetCode 747): Interview Notes ## Problem Return the index of the largest element if it is at least twice every other element, else -1. ## Approach One pass tracking the largest and second-largest values (and the index of the largest). At the end, check max >= 2 * second. No sorting needed, and you avoid a second loop. ## Complexity O(n) time, O(1) space. ## Interview tip Be explicit about initializing second-largest when the array has one element — that edge case is the usual trap. If you want live help practicing explanations like this, see [this tool](https://www.linkjob.ai/). *Disclosure: I work on Linkjob AI.*