System Design · Robinhood · Medium
A single text — picture one extremely long novel — cannot be held in memory all at once. Your task is to report which ten words appear most often inside it. Words are ranked by decreasing occurrence count. When two words have the same count, whichever comes first in lexicographic (dictionary) order is placed ahead of the other. Settle on one tokenization and normalization convention before you begin and apply it uniformly throughout — for example, how punctuation is handled,…
Checking your access…