Codewars kata: Sum of differences in array
More Codewars practice: sum the differences between consecutive pairs in an array sorted in descending order.
More Codewars practice: sum the differences between consecutive pairs in an array sorted in descending order.