What I can think of is:
Algo:
- Have a hash table which will store the number and its associated count
- Parse the array and increment the count for number.
- Now parse the hash table to get the number whose count is 1.
Can you guys think of solution better than this. With O(n) runtime and using no extra space