Autocomplete / Prefix Search with Frequency and Timestamp
Roblox interview questions · Medium · Coding round · reported 4× · 6 tests
Build ranked autocomplete results from historical queries.
Interface
autocompleteByPrefix(
queries: string[],
timestamps: number[],
prefixes: string[],
): string[][]Run your code with Ctrl+Enter to see results.