Rearrange digits so no neighbours sum above nine

0
Remix

Rearrange a list of digits so that no two adjacent digits sum to more than nine, or report that it cannot be done.

AmazonTechnical phone screenLast asked Jul 2026
No answer yet. Write the first one; the best answer gets endorsed.