# [[word-search|Word Search]] II
https://leetcode.com/problems/word-search-ii/
- Search the word in 2D grid, classic [[backtracking]] problem.
- Utilizes the [[trie]] data structure. Implemented with dictionary.
```python
# trie initialization
trie = {}
for word in words:
node = trie
for char in word:
node = node.setdefault(char, {})
node['