We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer - Bash!
You are viewing a single comment's thread. Return to all 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.