Skip to content

Commit 7d4e87d

Browse files
committed
Fixes(#3359)
1 parent cbad390 commit 7d4e87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/backtracking/All_Paths_From_Source_To_Target.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public int printAllPaths(int s, int d)
6060

6161
// add source to path[]
6262
pathList.add(s);
63-
63+
int a[]=new int[1];
6464
// Call recursive utility
6565
printAllPathsUtil(s, d, isVisited, pathList,a);
6666
return a[0];

0 commit comments

Comments
 (0)