Applying a permutation to a vector, part 5--Raymond Chen
It seems a simple problem, yet…
Applying a permutation to a vector, part 5
by Raymond Chen
From the article:
Our apply_permutation function assumes that the integers form a valid permutation. Let's add error checking...