Skip to content
expert

Challenge: search with a wildcard

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

Challenge: Search With a Wildcard

export class MagicTrie {
  addWord(word: string): void {
    // Your implementation here
  }

  search(query: string): boolean {
    // Your implementation here
  }
}
challenge — implement from scratchCtrl+↵ submits · Ctrl+Shift+↵ runsstarter code