Hi-
I'm trying to find all possible binary combinations of a given length. I do have a recursive code that does that but it's getting to be prohibitively slow for relatively long lengths.
If length is 3 i want my function to return:
000
001
010
011
100
101
110
111
help please!
Thanks
In reply to all binary combinations by perlrocks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |