![]() |
|
"be consistent" | |
PerlMonks |
Re: Re(3): Puzzle: need a more general algorithmby Ovid (Cardinal) |
on Jul 09, 2002 at 14:17 UTC ( #180484=note: print w/replies, xml ) | Need Help?? |
Tempting, but the this is the "swapping bits" that I was referring to. The solution skips these three combinations:
If you look at them closely, you'll see why you can't generate them. That's what got me stuck on this track. If that can be solved, this is a good way to go. Oh, and since you mentioned this was untested, I won't comment about for my $bit ($splits-1..0) { :) Cheers, Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In Section
Seekers of Perl Wisdom
|
|