← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Given a text string, extract all words (sequences of letters a–z or A–Z), treat them case-insensitively, count their frequencies, and return the 10 most frequent words. If two words have the same frequency, the lexicographically smaller word comes first. The solution must be efficient for large inputs and should stream through the text in a single pass if possible.