Skip to content
advanced

Challenge: autocomplete on a trie

Implement this from the stub. Hidden tests grade the behaviour you write, not the comments you leave.

Challenge: Autocomplete on a Trie

export class Autocomplete {
  constructor(words: string[]) {
    // Your implementation here
  }

  complete(prefix: string): string[] {
    // Your implementation here
  }
}
challenge — implement from scratchCtrl+↵ submits · Ctrl+Shift+↵ runsstarter code