https://leetcode.com/problems/word-search-ii/
function dfs(array,x,y,trie)
if array.length >=10
return
if x== -1 or x== board.length
return
if y==-1 or y == board[x].length
return
if ([x,y] in array):
return
array.append([x,y])
if trie [ board[x][y] ] == Null:
trie[board[[x][y]] = {}
trie = trie[board[x][y]]
dfs(array,x,y+1,trie)
dfs(array,x,y-1,trie)
dfs(array,x+1,y,trie)
dfs(array,x-1,y,trie)
trie = root Trie
for (x : board 0~board.length)
for (y: element 0~board[x].length)
ary = []
dfs(ary,x,y,trie)
--- 그후 Trie 검색
![[Pasted image 20230913183310.png]]
![[노드 - 0 15.jpg]]