Question d’entretien chez Akamai

To find the duplicate no in an array

Réponse à la question d'entretien

Utilisateur anonyme

7 févr. 2017

@arr = (1..10,8,9); %hash; foreach (@arr) { if(exists($hash{$_})){ print $_; } else{ $hash{$_} = 1; } }