Here is the interview question prompt, presented for reference.
A very common interview challenge is to determine how often words appear in a given string or set of strings. Here's a version of this: return a list of duplicate words in a sentence.
For example, given 'The dog is the best'
, returns ["the"]
.
Likewise, given 'Happy thanksgiving, I am so full'
, you would return an empty array. This is because there are no duplicates in the string.
100000
O(n)
where n
are the number of words in the stringO(n)
You can see the full challenge with visuals at this link.
Challenges • Asked over 4 years ago by Anonymous
This is the main discussion thread generated for Find Duplicate Words.
[deleted]
hi How can I submit this with several other tests? I only found "run code".
In addition to that, when I click on "Your submission", the page turns blank
Hello, mates! According to the unemployed professors review reddit, the company provides not the worst assistance possible, but there still exist better experts. Can you give me some recommendations and descriptions of the sites that you use to stabilize and improve grades? Thanks!