I've given you a start although I probably should have named rot_max_left() as shift_max_left(). I encourage you to give this a go yourself and post your code.
In reply to Re^5: Next permutation
by Marshall
in thread Next permutation
by aartist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |