Back to Question

Implement Trie (Prefix Tree)

Question Explain

Implement the Trie data structure, which supports `insert`, `search`, and `startsWith` operations.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.