Here is a game where you try ato order the digits from one to nine in as few moves as possible. Let's start with the string of numbers 382546197. In any given move you can reverse the order of anywhere between two and nine digits, counting from the left.
If you wanted to reverse the the first five digits coutning from the left, you would change:
382546197 into 452836197, if you now wanted to reverse the first three digits of this new string of numbers you would change:
452836197 into 254836197.
Try to transform 382546187 into 123456789 in as few moves as possible.
No comments:
Post a Comment