|
Project Euler Homework
|
#include <043_permutation.h>
Public Member Functions | |
| perm043 (unsigned) | |
| sequence of digits (0~N) | |
| perm043 (digit *, unsigned) | |
| Construct initial permutation 0123...N. | |
| ~perm043 () | |
| Construct permutation from existing array. | |
| bool | next () |
| Destructor. | |
| void | print_perm () |
| find next permutation | |
| int | operator[] (idx) |
| print the permutation to stdout | |
| unsigned | length () |
| find the i-th digit | |
list all permutations from 0 to N
Definition at line 12 of file 043_permutation.h.
| perm043::perm043 | ( | unsigned | size | ) |
sequence of digits (0~N)
| size | number of digits |
Definition at line 31 of file 043_permutation.h.
| perm043::perm043 | ( | digit * | perm2, |
| unsigned | length | ||
| ) |
Construct initial permutation 0123...N.
| perm2 | array of digits |
| length | number of digits |
Definition at line 43 of file 043_permutation.h.
1.7.3