Rearrange digits so no neighbours sum above nine
Rearrange a list of digits so that no two adjacent digits sum to more than nine, or report that it cannot be done.
No answer yet. Write the first one; the best answer gets endorsed.
Rearrange a list of digits so that no two adjacent digits sum to more than nine, or report that it cannot be done.