3 ms·
> “Return the top 10 most frequently occurring words in a string.” ... > var words = s1.Split(' '); Wrong. Yet another example where an interviewer cannot co
by ExpiredLink 13y ago
> “Return the top 10 most frequently occurring words in a string.”
...
> var words = s1.Split(' ');
Wrong. Yet another example where an interviewer cannot correctly solve his own questions.
- danabramov 13y agoCare to elaborate? It probably lacks punctuation characters, case-insensitiveness and RemoveEmptyItems option, but is there anything else missing?
- jameshart 13y ago中国四分之一地区六亿人受雾霾影响 contains more than one word.
- cema 13y agoDepends on the definition of a word. I18n is normally hard, and likely would make for an exciting discussion instead of just a tech interview.
- ExpiredLink 13y ago> there anything else missing? You named more than I detected.