","b"],["c","d"]], words = ["abcb"]
输出:[]
提示:
m == board.length
n == board[i].length
1 12...words.length <= 3 * 104
1 <= words[i].length <= 10
words[i] 由小写英文字母组成
words 中的所有字符串互不相同
题解
Trie+暴力搜索...}
cnt[p] = 1;
}
vectorres;
string t = "";
int n,m;
int vis[12...][12],dx[4] = {
0,1,0,-1},dy[4] = {
-1,0,1,0};
int flag[N] = {
0};
setss;