0-9 is a large set of numbers to test with, but take a smaller set, and draw up samples. From the samples you should see patterns you can produce in code.
As a limited sample, take 0-2
0-1-2 :...
Type: Posts; User: jps
0-9 is a large set of numbers to test with, but take a smaller set, and draw up samples. From the samples you should see patterns you can produce in code.
As a limited sample, take 0-2
0-1-2 :...
Do you have to go through the steps shown above? ...where on the first iteration the last is swapped with the next to last, or can you jump from step 1 to the final output?
Start with what ever...