Skip to content

Commit 5fb842e

Browse files
committed
Fix comments
1 parent 066f970 commit 5fb842e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,19 @@ public static boolean setWay(int[][] map, int i, int j) {
9999
// Assume the path is feasible, mark the current position as '2'
100100
map[i][j] = 2;
101101

102-
// Try moving down
102+
// Move down
103103
if (setWay(map, i + 1, j)) {
104104
return true;
105105
}
106-
// Try moving right
106+
// Move right
107107
else if (setWay(map, i, j + 1)) {
108108
return true;
109109
}
110-
// Try moving up
110+
// Move up
111111
else if (setWay(map, i - 1, j)) {
112112
return true;
113113
}
114-
// Try moving left
114+
// Move left
115115
else if (setWay(map, i, j - 1)) {
116116
return true;
117117
} else {

0 commit comments

Comments
 (0)