employer cover photo
employer logo
employer logo

Shopbop | East Dane

Is this your company?

Shopbop | East Dane Interview Question

Count unique words in a given string

Interview Answer

Anonymous

Oct 7, 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.