Question d’entretien chez Shopbop | East Dane

Count unique words in a given string

Réponse à la question d'entretien

Utilisateur anonyme

7 oct. 2019

1. Split the string on a " " delimiter to get a char array 2. return length of char array -- 2a. if unique words are required -- populate the char array elements into a HashSet and return the set's size.