I want to list permutations with only 0 and 1. Similar to binary but allowing variable lengths, doesn\'t have to equal 8 length. For example:
0 1 00 01 10 11 000
You can also use:
using System; class Test { static void permute(int len) { for (int i=1; i<=len; i++) { for (int j=0; j
Which involves no recursion :)