values. Take its smallest and largest numbers and return their greatest common divisor: the largest positive integer that divides both of them evenly.values=[12, 30, 18, 20] → 6
The minimum is 12, the maximum is 30, and their GCD is 6.
values=[9, 4, 7] → 1
4 and 9 share no divisor except 1.
values=[8, 8] → 8
values=[12, 30, 18, 20]
6
Run checks the first 3 tests in your browser. Submit checks all 102 tests on the server, hidden ones included.