You have an array of numbers with each number having being duplicated except for one. The array is not sorted. How would you go about finding the number without a duplicate?
Sigiloso
^That is inefficient. That is nlog(n). If you do 2 for loops first, inserting into a hashmap and incrementing when you see it again, second checking through the hashmap for the value of 1. that would be O(n) instead of O(nlogn)