#208

Implement Trie (Prefix Tree)

medium· Triesruns: 0

A trie is a tree data structure used to efficiently store and retrieve keys in a set of strings. Implement the Trie class with insert(word), search(word) returning true if the exact word is in the trie, and startsWith(prefix) returning true if any inserted word has the given prefix.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.