We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc3ad7c commit 1c16e90Copy full SHA for 1c16e90
1 file changed
DepthFirstSearch/Java/DFS_Recursive.java
@@ -37,8 +37,8 @@ public static void main(String[] args) {
37
38
for(int i=0; i<edges; i++){
39
System.out.println("To indicate that u is connected to v, type: u v");
40
- int x = in.nextInt();
41
- int y = in.nextInt();
+ int u = in.nextInt();
+ int v = in.nextInt();
42
// Assuming that it's an undirected graph
43
AdjList[x].add(y);
44
AdjList[y].add(x);
0 commit comments