MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / findPath

Method findPath

RatInAMazeProblem.java:27–33  ·  view source on GitHub ↗
(int[][] m, int n)

Source from the content-addressed store, hash-verified

25 visited[r][c]=0;
26 }
27 public static ArrayList<String> findPath(int[][] m, int n) {
28 // Your code here
29 ArrayList<String> list = new ArrayList<String>();
30 int visited[][] = new int[n][n];
31 backTrack(0,0,m,n,list,"",visited);
32 return list;
33 }
34}

Callers

nothing calls this directly

Calls 1

backTrackMethod · 0.95

Tested by

no test coverage detected