Project Euler Homework
Public Member Functions

permutation Class Reference

List of all members.

Public Member Functions

 permutation (unsigned short *y, int a, int b)
void swap (int a, int b)
 swap the a-th and b-th digits
void printP ()
 print the permutation
void move_to (unsigned k)
 move to k-th permutation, destructive.

Detailed Description

Using the method of recursion: To find the permutation of N digits in numerical order:

Definition at line 38 of file 024.cpp.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables