View Single Post
  #1 (permalink)  
Old 02-26-2008, 02:19 AM
gor gor is offline
Newbie
 
Join Date: Sep 2007
Posts: 11
Credits: 20
Rep Power: 0
gor is on a distinguished road
Default 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
Reply With Quote

Sponsored Links