...

/

HashSet: Exercise

HashSet: Exercise

Let's work on a HashSet exercise.

We'll cover the following...

Problem: Find duplicate element

You are given an array in which all the elements are unique except one element. You need to find the duplicate element.

For example, the array ...