Largest Number At Least Twice of Others Problem

Largest Number At Least Twice of Others Problem — ExecCode Easy DSA Practice

Solve the Largest Number At Least Twice of Others problem on ExecCode. Free online easy DSA practice in Arrays - Logic Building. Write and run code in Java, C++, Python — no signup required to run.

Description You are given an integer array nums where the largest integer is unique. Determine whether the largest element in the array is at least twice as much as every other number in the array. If it is, return the index of the largest element, or return -1 otherwise. Exampl…

Practice Largest Number At Least Twice of Others free on ExecCode. Browse more ExecCode DSA problems.