Trie Search
Walk the characters. The word exists if the walk succeeds and ends on a terminal node.
Cost
- Best
- O(1)
- Average
- O(L)
- Worst
- O(L)
- Space
- O(1)
Before this
Leads to
Topics that need this one first.
Taught by the same lesson
Trie covers these too, in the same run.