Skip to content

Commit 0be3714

Browse files
authored
Update Solution.java
1 parent 4c9df6f commit 0be3714

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/g3401_3500/s3419_minimize_the_maximum_edge_weight_of_graph

1 file changed

+1
-1
lines changed

src/main/java/g3401_3500/s3419_minimize_the_maximum_edge_weight_of_graph/Solution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public int minMaxWeight(int n, int[][] edges, int threshold) {
2424
int[] distance = new int[n];
2525
Arrays.fill(distance, Integer.MAX_VALUE);
2626
distance[0] = 0;
27-
if (reversedG[0].size().isEmpty()) {
27+
if (reversedG[0].isEmpty()) {
2828
return -1;
2929
}
3030
Queue<Integer> que = new LinkedList<>();

0 commit comments

Comments
 (0)