in reply to Re: One Zero variants_without_repetition
in thread One Zero variants_without_repetition
and saw it works only with 2 ones...my $places = 6; for my $left (1..$places-1) { for my $right (0 .. $left -1) { printf "%0$places"."b\n", (1 << $left) | (1 << $right); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: One Zero variants_without_repetition
by GrandFather (Saint) on Aug 07, 2007 at 11:46 UTC | |
by papidave (Pilgrim) on Aug 07, 2007 at 15:08 UTC | |
by tye (Sage) on Aug 07, 2007 at 16:29 UTC | |
by thenetfreaker (Friar) on Aug 07, 2007 at 11:58 UTC | |
by ohcamacj (Beadle) on Aug 08, 2007 at 02:59 UTC | |
by tye (Sage) on Aug 08, 2007 at 05:58 UTC | |
by GrandFather (Saint) on Aug 07, 2007 at 21:03 UTC |