Domanda di colloquio di Shopbop | East Dane

Count unique words in a given string

Risposta di colloquio

Anonimo

7 ott 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.