Skip to content

Commit 0aa4d60

Browse files
Code refactor
1 parent ea9c52c commit 0aa4d60

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1+
package backtracking;
2+
13
/**
24
* Created by PRADHANG on 4/13/2017.
3-
* Accepted
5+
Given a 2D board and a word, find if the word exists in the grid.
6+
7+
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.
8+
9+
For example,
10+
Given board =
11+
12+
[
13+
['A','B','C','E'],
14+
['S','F','C','S'],
15+
['A','D','E','E']
16+
]
17+
word = "ABCCED", -> returns true,
18+
word = "SEE", -> returns true,
19+
word = "ABCB", -> returns false.
420
*/
521
public class WordSearch
622
{

0 commit comments

Comments
 (0)