returnstrue, word ="SEE", -> returnstrue, word ="ABCB", -"/>
经典指数          
原因
1939
浏览数
0
收藏数
 

Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be used more than once. For example, Given board = [ ["ABCE"], ["SFCS"], ["ADEE"] ] word ="ABCCED", -> returnstrue, word ="SEE", -> returnstrue, word ="ABCB", -> returnsfalse.

     举报   纠错  
 
切换
暂时还没有答案,欢迎分享你的解答 . . .
撰写答案
扫描后移动端查看本题