4 ms·
Write a program which is passed two arrays and determines whether the contents of one is a permutation of the contents of the other.
by bade 9y ago
Write a program which is passed two arrays and determines whether the contents of one is a permutation of the contents of the other.
- herodotus 9y agoNice idea, but this is pretty difficult as a screening question. I could simplify it by letting the candidate assume that there are no repetitions in either array.