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

Method allPathsSourceTarget

AllPathsSourceToEndGraph.java:19–25  ·  view source on GitHub ↗
(int[][] graph)

Source from the content-addressed store, hash-verified

17 }
18
19 public List<List<Integer>> allPathsSourceTarget(int[][] graph) {
20 List<Integer> sublist = new ArrayList<Integer>();
21 List<List<Integer>> list = new ArrayList<List<Integer>>();
22 sublist.add(0);
23 backTrack(graph,0,list,sublist);
24 return list;
25 }
26}

Callers

nothing calls this directly

Calls 2

backTrackMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected