You are given an integer array nums.
Replace each element in nums with the sum of its digits.
Return the minimum element in nums after performing the replacement on all elements.
Constraints:
nums.length
nums[i]
You are given an integer array nums.
Replace each element in nums with the sum of its digits.
Return the minimum element in nums after performing the replacement on all elements.
Constraints:
nums.length
nums[i]