I came across this post, which reports the following interview question:
Given two arrays of numbers, find if each of the two arrays have the same s
A special, not harder case is when one array holds 1,2,..,n. This was discussed many times:
and despite many tries no deterministic solutions using O(1) space and O(n) time were shown. Either you can cheat the requirements in some way (reuse input space, assume integers are bounded) or use probabilistic test.
Probably this is an open problem.