You are given an array of positive integers nums.
The element sum is the sum of all elements in nums.
The digit sum is the sum of every digit that appears in nums.
Return the absolute difference between the element sum and the digit sum of nums.
Constraints:
nums.length
nums[i]
You are given an array of positive integers nums.
The element sum is the sum of all elements in nums.
The digit sum is the sum of every digit that appears in nums.
Return the absolute difference between the element sum and the digit sum of nums.
Constraints:
nums.length
nums[i]