Skip to content

Commit 2f170cc

Browse files
committed
Fix checkstyle violations.
1 parent 44fc523 commit 2f170cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ 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()) { return true; }
8787

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

0 commit comments

Comments
 (0)