You are given an array nums consisting of positive integers where all integers have an equal number of digits.
The digit difference between two integers of equal length is defined as the count of positions where the digits at the corresponding positions are not equal.
Return the total sum of the digit differences across all pairs of elements (nums[i], nums[j]) where nums.length.
Constraints:
nums.length
nums[i]
All integers in nums have the same number of digits.
You are given an array nums consisting of positive integers where all integers have an equal number of digits.
The digit difference between two integers of equal length is defined as the count of positions where the digits at the corresponding positions are not equal.
Return the total sum of the digit differences across all pairs of elements (nums[i], nums[j]) where nums.length.
Constraints:
nums.length
nums[i]
All integers in nums have the same number of digits.