Given an array of integers, provide an efficient way of finding an integer that appears only once in this array.
Sigiloso
My choice would be using a HashMap So, Traverse through the array, store each element in the array and its value as 1. Now, if you encounter the same element again further in the array, increment the value of the respective key. After the array exhausts, print the keys whose values are 1.