1085. Sum of Digits in the Minimum Number
Description
**Input:** nums = [34,23,1,24,75,33,54,8]
**Output:** 0
**Explanation:** The minimal element is 1, and the sum of those digits is 1 which is odd, so the answer is 0.**Input:** nums = [99,77,33,66,55]
**Output:** 1
**Explanation:** The minimal element is 33, and the sum of those digits is 3 + 3 = 6 which is even, so the answer is 1.ac
Last updated