← Back
00:00

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[][]
Idle