Iterative absolute difference reduction
Filed under HashedIn
The question
Repeatedly remove the two largest elements from an array and add their absolute difference back into the array (if non-zero) until only one element remains.
No write-up yet. Related questions below have one.
Related HashedIn questions
Collected from public candidate posts and coding forums. Updated Nov 2026.