![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( #3333=superdoc: 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 reply to Re: Re(3): Puzzle: need a more general algorithm
by Ovid
|
|