Skip to content

Commit 066f970

Browse files
committed
Fine tune comments
1 parent ce9b917 commit 066f970

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
@@ -148,19 +148,19 @@ public static boolean setWay2(int[][] map, int i, int j) {
148148
// Assume the path is feasible, mark the current position as '2'
149149
map[i][j] = 2;
150150

151-
// Try moving up
151+
// Move up
152152
if (setWay2(map, i - 1, j)) {
153153
return true;
154154
}
155-
// Try moving right
155+
// Move right
156156
else if (setWay2(map, i, j + 1)) {
157157
return true;
158158
}
159-
// Try moving down
159+
// Move down
160160
else if (setWay2(map, i + 1, j)) {
161161
return true;
162162
}
163-
// Try moving left
163+
// Move left
164164
else if (setWay2(map, i, j - 1)) {
165165
return true;
166166
} else {

0 commit comments

Comments
 (0)