Skip to content

Commit 08effc8

Browse files
committedOct 3, 2021
Credit where credit's due: Add reference to original author
(and added a missing comment)
1 parent 0d5a3ce commit 08effc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎Backtracking/RatInAMaze.js

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* - The rat can not move diagonally.
77
*
88
* Reference for this problem: https://www.geeksforgeeks.org/rat-in-a-maze-backtracking-2/
9+
*
10+
* Based on the original implementation contributed by Chiranjeev Thapliyal (https://github.com/chiranjeev-thapliyal).
911
*/
1012

1113
/**
@@ -110,6 +112,7 @@ export class RatInAMaze {
110112
/** Path from the source [0, 0] to the target [N-1, N-1]. */
111113
#_path = ''
112114

115+
/** Whether the rat could find a way to the target or not. */
113116
#_solved = false
114117

115118
constructor (grid) {

0 commit comments

Comments
 (0)
Please sign in to comment.