Problem 2535 · Easy

Difference Between Element Sum and Digit Sum of an Array

Accumulate the plain sum of the numbers and the sum of all their digits, then return the absolute difference.

Open the interactive visualisation