You need an outer 'loop forever' with two inner loops. Inside the outer loop the first inner loop loops from min to max - 1, then it exits. The second inner loop loops from max to min + 1, then...
Type: Posts; User: Sean4u
You need an outer 'loop forever' with two inner loops. Inside the outer loop the first inner loop loops from min to max - 1, then it exits. The second inner loop loops from max to min + 1, then...
You can look at it as two sequences, one like this:
and one like this
A loop that does those two over and over could be about right