Problem 1417 · Easy

Reformat The String

Rearrange a mixed string so that digits and letters alternate, if the counts allow it. The visual interleaves two colour-coded sequences into one output row.

Open the interactive visualisation