Skip to content

Commit f97d710

Browse files
committed
Fix checkstyle violations and code formatting.
1 parent 2f170cc commit f97d710

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/thealgorithms/backtracking/WordSearch.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ private boolean isValid(int x, int y) {
8383
// }
8484

8585
private boolean dfs(char[][] board, int x, int y, String word, int idx) {
86-
if (idx == word.length()) { return true; }
86+
if (idx == word.length()) {
87+
return true;
88+
}
8789

8890
if (x < 0 || y < 0 || x >= board.length || y >= board[0].length || board[x][y] != word.charAt(idx)) {
8991
return false;

0 commit comments

Comments
 (0)