← Questions

Rearrange digits so no neighbours sum above nine

0
AmazonCodingLast asked Jul 2026

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

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding