ByteDance / TikTok logoByteDance / TikTok
Coding·60 minMembers

Word Search II with Trie

Members only

Find words from a dictionary inside a 2D character board. The expected solution builds a trie over the word list, then runs backtracking DFS from each board cell with in-place visited marking.

SWE
trie
grid
dfs
backtracking
hard
Frequency
Single report
Last asked
2026-05-20
Stage
onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...