Yeah, swapping seems to be better, would keep the large digits in the lesser valuable positions.
I interpreted the rules this way, because it didn't seem right to lose a digit in the resulting number. That would be like assuming input set [1,2,0] as equivelent to [1,2].
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yeah, swapping seems to be better, would keep the large digits in the lesser valuable positions.
I interpreted the rules this way, because it didn't seem right to lose a digit in the resulting number. That would be like assuming input set
[1,2,0]
as equivelent to[1,2]
.