Cyclic Permutation
This is an array/list trick that saves about O(n) in space complexity by taking advantage of a given array with integers representing indices. For »
This is an array/list trick that saves about O(n) in space complexity by taking advantage of a given array with integers representing indices. For »