Simple Autocomplete System
Implement a program that performs simple autocompletion, like the kind used on a smartphone keyboard.
Given n words with usage frequencies and q prefix queries, for each prefix return the top 3 words...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
