Can anyone help me conceptually understand what options are available to me for the following:
I have an array of int elements, I'm looking for a way that I can see if any of these are duplicates. I am trying to keep time complexity in mind, and want a solution that is in O(n)
time.
With this specific boundary in mind, I cannot use a nested for-loop to iterate through all n elements, since this array may contain tens of thousands of indicies.
Any ideas or suggestions that might help me?