Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[delphi] generating binary strings

Name: Anonymous 2012-01-19 18:10

How can I generate all binary strings of n length with m ones? (in delphi)
sample: n=3 m=2:
110
101
011

Name: Anonymous 2012-01-19 20:56

super-tricky one ^^ (not really)

n = 5 / m= 3 (inverse of n=5 m=2)

5 * 4 * 3 / (3 * 2 * 1)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List