I spent over an hour to write the algorithm first with time complexity \$O(nm)\$, where \$n\$ is the sentence's length and \$m\$ is delimiters length. I practiced using C#, tried to write a string.Split(string) by myself, and also learn to write LINQ for correct syntax by looking up the stackoverflow questionthe stackoverflow question to make the code more succinct.
Tolani
- 2.5k
- 7
- 31
- 49
add LINQ reference on stackoverflow.com to look up sort by dictionary's value by descending order.
Jianmin Chen
- 2.5k
- 2
- 29
- 52
Jianmin Chen
- 2.5k
- 2
- 29
- 52