Pergunta de entrevista da empresa Shopbop | East Dane

Count unique words in a given string

Resposta da entrevista

Sigiloso

7 de out. de 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.