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

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.