• + 2 comments

    i dont think it contradicting problem statement since look in to the test case 5 0 0 1 2 1 here output is 2 since it appears only once. so in this case the output should be 1. and the example you provided at begining the answer should return a empty array. according the test cases provided. correct me if i am wrong.