Skip to content

Commit f8030cc

Browse files
authored
Update Solution.java
1 parent 05227d8 commit f8030cc

File tree

1 file changed

+0
-2
lines changed
  • src/main/java/g1701_1800/s1761_minimum_degree_of_a_connected_trio_in_a_graph

1 file changed

+0
-2
lines changed

src/main/java/g1701_1800/s1761_minimum_degree_of_a_connected_trio_in_a_graph/Solution.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ public class Solution {
66
public int minTrioDegree(int n, int[][] edges) {
77
int[] degrees = new int[n + 1];
88
int[][] adjMatrix = new int[n + 1][n + 1];
9-
109
for (int[] edge : edges) {
1110
adjMatrix[edge[0]][edge[1]] = 1;
1211
adjMatrix[edge[1]][edge[0]] = 1;
1312
degrees[edge[0]]++;
1413
degrees[edge[1]]++;
1514
}
16-
1715
int minTrios = Integer.MAX_VALUE;
1816
for (int i = 1; i <= n; i++) {
1917
for (int j = i + 1; j <= n; j++) {

0 commit comments

Comments
 (0)