Question d’entretien chez ViewLift

Find a duplicate in an array, there is only one duplicate item.

Réponse à la question d'entretien

Utilisateur anonyme

13 juin 2018

Sort the array and check if the item in the current index equals the item in the next index. If so, you have found your duplicate.