> Fun problem++
Thanks! :) I was hoping that others would find it so; I did, even though I didn't manage to wrestle it to the ground myself.
Something's off with your solution, though: since the 'a's are supposed to be spread out as much as possible, the majority of the second list fails the test (e.g., 'babab' should have been 'abbba'.)
In reply to Re^2: Spreading out the elements
by oko1
in thread Spreading out the elements
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |