mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00
Credit where credit's due: Add reference to original author
(and added a missing comment)
This commit is contained in:
@ -6,6 +6,8 @@
|
||||
* - The rat can not move diagonally.
|
||||
*
|
||||
* Reference for this problem: https://www.geeksforgeeks.org/rat-in-a-maze-backtracking-2/
|
||||
*
|
||||
* Based on the original implementation contributed by Chiranjeev Thapliyal (https://github.com/chiranjeev-thapliyal).
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -110,6 +112,7 @@ export class RatInAMaze {
|
||||
/** Path from the source [0, 0] to the target [N-1, N-1]. */
|
||||
#_path = ''
|
||||
|
||||
/** Whether the rat could find a way to the target or not. */
|
||||
#_solved = false
|
||||
|
||||
constructor (grid) {
|
||||
|
Reference in New Issue
Block a user