Search
⌘K

Leetcode 1250. Check If It Is a Good Array

Check whether some integer linear combination of the array elements can equal 1 — equivalently determine if the greatest common divisor of all numbers in the array is 1 (i.e., gcd(nums) == 1).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Your account is free and you can post anonymously if you choose.