An interview question on array comparison

Posted by user288084 on Stack Overflow See other posts from Stack Overflow or by user288084
Published on 2010-04-20T06:37:23Z Indexed on 2010/04/20 6:43 UTC
Read the original article Hit count: 123

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]

© Stack Overflow or respective owner

Related posts about algorithm

Related posts about interview-questions