Reverse
The rules for REVERSE
The object of REVERSE is to play a list of the digits from 1 to 9 which
are in random order into order from 1 to 9 in as few moves as possible.
Each move consists of reversing from 2 to 9 digits starting from the leftmost
digit and working toward the rightmost digit. For example if you had the
following list 8 2 3 7 9 5 4 61 and reverse 4 it would then become
7 3 2 8 9 5 4 6 1. If you then reversed 7, the list would become
4 5 9 8 2 3 7 6 1.
In the program, the numbers are printed this way:
1 2 3 4 5 6 7 8 9
-----------------
(4 5 9 8 3 3 7 6 1)
-----------------
The top numbers are to help you decide how many to reverse. The bottom numbers
are the list that you are trying to get in order.
- Printer-friendly version
- Log in or register to post comments