> New challange: > > Starting with an array, find the first permutation of the elements of > that array that is lexicographically greater than (i.e. sorts after) > the given array. I was tempted to port the C++ next_permutation code, but then I realized I have class. :(