binary number combination
hi
can you please help me with this problem?
i am trying to generate all combinations of binary number with fix number of digits and number of ones
e.g. number of digits=4 and number of ones=2:
0011
0101
0110
1001
1010
1100
have you got any idea how to solve this?
thanks a lot
|