Question d’entretien chez OneAssist Consumer Solutions

Remove duplicate from contact list.

Réponses aux questions d'entretien

Utilisateur anonyme

15 juil. 2017

We can use a HashMap for it where name will be the key and phone number will be the value. If second time any name appears then its key will be already present in the map and it will be deleted.

Utilisateur anonyme

17 janv. 2018

Name can be same. A contact will be duplicated only if phone number is same. Need to use number as key.

Utilisateur anonyme

10 avr. 2018

Instead of map you can use set