numbers. Find the smallest number in it and add up its decimal digits.
Return 1 if that sum is even and 0 if it is odd.numbers=[48, 19, 62, 30] → 1
The smallest is 19; its digits add up to 1 + 9 = 10, which is even, so the answer is 1.
numbers=[56, 70, 23] → 0
The smallest is 23; its digit sum 5 is odd, so the answer is 0.
numbers=[100] → 0
The digits of 100 add up to 1, which is odd, so the answer is 0.
numbers.length ≤ 100numbers[i] ≤ 10⁹numbers=[48, 19, 62, 30]
1
Run checks the first 3 tests in your browser. Submit checks all 123 tests on the server, hidden ones included.