Created
July 28, 2011 18:53
-
-
Save zsol/1112252 to your computer and use it in GitHub Desktop.
Solution for problem 24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int ints[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; | |
for (int i = 1; i < 1000000; ++i) std::next_permutation(ints, ints+10); | |
for (int i = 0; i < 10; ++i) std::cout << ints[i]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment