Google Onsite Questions
Anonymous User
1647

What was the optimal solution for these?

Question1:

Given an array of strings "sentences", and an array of strings "usernames", find how many times each username appeared in total across all the sentences.

Questions2:

Given an array of strings "words", remove each word from the array that is a prefix of another word.

Comments (4)