Compute the Digit Difference Sum of a Number
Python 2, 73
Luckily, I managed to avoid any string operations.
t=lambda n:n&gt;9and abs(n%10-n/10%10)+10*t(n/10)
g=lambda n:n and n+g(t(n))

g is the function that computes the answer.