++ Nice implementation, test & improvement!
I was actually not proposing my algorithm as being a correct one or not, just suggesting a mode of attack. (I like recursion for tasks like this.) But judging from your results, I wasn't terribly far off.
...roboticus
In reply to Re^4: Spreading out the elements
by roboticus
in thread Spreading out the elements
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |