Available question text
Compute the absolute difference between the element sum (sum of the array values) and the digit sum (sum of every decimal digit appearing in those values).
Related questions
Continue with questions that share topics or the same question type.
- Difference Between Maximum and Minimum Price Sum
Coding
- Maximum Difference Between Adjacent Elements in a Circular Array
Coding
- Minimum Element After Replacement With Digit Sum
Coding
- Partition Array Into Two Arrays to Minimize Sum Difference
Coding · Array · Binary Search · Bit Manipulation
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2535. Difference Between Element Sum and Digit Sum of an Array
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source