|
|
Dave Vogt wrote:
> Sure: move the three declares to below the while loop, change
> the indexes from 0..2 to 100..102, and change a[i+3] to a[i] and
> clock-i-3 to clock-i. That should be it.
Oh, I forgot: you gotta change the values of the new a[100] to
a[102] too, so they apply to the new head position.
--
Dave "tPassive" Vogt| ruby -e "n=gets.to_i;a=(2..n).to_a;a.each{
Linux user #225040| |x|puts x;(x*2).step(n,x){|j|a.delete j}}"
____________________|_____________________________ |
PGP Key: http://control-alt-del.ch/public_key.asc \____________/
Post a reply to this message
|
|