Find permutation of an array such that it is equal to another array

Also, the conclusion about performance wouldn’t be the same if the inputs are vectors of integers as follows:

a = rand(1:100, 1000)
b = shuffle(a)
1 Like