Build Array from Permutation
Build a new array where each position holds the original permutation value at the index given by that position. The visual draws arrows from each index to the value it points to, forming chains of lookups.
Build a new array where each position holds the original permutation value at the index given by that position. The visual draws arrows from each index to the value it points to, forming chains of lookups.