Problem 3667 · Easy

Sort Array By Absolute Value

Repeatedly pick the remaining value closest to zero, so the array ends up ordered by absolute value.

Open the interactive visualisation