Skip to content

Commit cbad390

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

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
@@ -53,7 +53,7 @@ public void addEdge(int u, int v)
5353

5454
// Prints all paths from 's' to 'd'
5555

56-
public void printAllPaths(int s, int d)
56+
public int printAllPaths(int s, int d)
5757
{
5858
boolean[] isVisited = new boolean[v];
5959
ArrayList<Integer> pathList = new ArrayList<>();

0 commit comments

Comments
 (0)