An interview question on array comparison
- by user288084
There are two arrays with equivalent size. How to decide whether these two arrays contain the same set of elements, but the orders of these elements in the respective arrays are different.
For instance.
A = [a, b, c]
B= [b, c, a]