Sort array and find sum of consecutive differences
Filed under Optum (UnitedHealth Group)
The question
Sort an array of numbers and calculate the sum of consecutive differences between elements.
No write-up yet. Related questions below have one.
Related Optum (UnitedHealth Group) questions
Collected from public candidate posts and coding forums. Updated Nov 2026.