Applying permutation in constant space (and linear time)A mildly interesting algorithmic problem and my solution to it.