Apply Permutation
Apply Permutation Problem Statement Write a program that takes a permutation array and a input array and reorder the input array as per the given permutation. Problem Solving I can see that this seems to be a linear time problem. We need to apply permutation inc cycle. Start at 0 replace current position at 0 […]