We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d2374f commit 1857facCopy full SHA for 1857fac
Dijkshtra.java
@@ -1,7 +1,6 @@
1
public static void main(String[] args) throws IOException {
2
- Reader in=new Reader();
3
- int t1=in.nextInt();
4
-
+ Scanner in =new Scanner(System.in);
+
5
int n=in.nextInt(); //n = Number of nodes or vertices
6
int m=in.nextInt(); //m = Number of Edges
7
long w[][]=new long [n+1][n+1]; //Adjacency Matrix
0 commit comments