Thread
:
Generating all sequences of 1s and 0s of length 30
View Single Post
#
2
(
permalink
)
05-14-2008, 11:52 PM
v0id
Join Date: Apr 2007
Location: Denmark
Posts: 2,415
Last Blog:
CherryPy(thon)
Rep Power:
27
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
.
__________________
CodeCall Blog
|
CodeCall Wiki
|
Shareware
|
Linux Forum
C/C++ resources
-
C/C++ frequently asked questions
Python resources
-
Python frequently asked questions
I'm always up for a chat, so feel free to contact me...
Last edited by v0id; 05-14-2008 at
11:53 PM
. Reason: Stupid smileys
v0id
View Public Profile
Send a private message to v0id
Visit v0id's homepage!
Find all posts by v0id