View Single Post
  #2 (permalink)  
Old 05-14-2008, 11:52 PM
v0id's Avatar   
v0id v0id is offline
Super Moderator
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,415
Last Blog:
CherryPy(thon)
Rep Power: 27
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default Re: Generating all sequences of 1s and 0s of length 30

What language is it going to be in? If you're using C++, you can use two of the standard algorithm functions to solve the problem. They're called next_permutation and prev_permutation.

If not, you may check Wikipedia's article on permutations.

Last edited by v0id; 05-14-2008 at 11:53 PM. Reason: Stupid smileys
Reply With Quote