What is the millionth lexicographic permutation of the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9?
First clone the repo:
git clone https://github.com/AlexLandherr/nth_permutation.git
Change directory to repo:
cd nth_permutation/
Create a directory called obj
:
mkdir obj
Then build & compile using make
:
make
Run:
./nth_permutation