Skip to content

Commit 4bb62b0

Browse files
committed
Fixed sonar
1 parent be570cb commit 4bb62b0

File tree

1 file changed

+5
-0
lines changed
  • src/main/java/g3301_3400/s3311_construct_2d_grid_matching_graph_layout

1 file changed

+5
-0
lines changed

src/main/java/g3301_3400/s3311_construct_2d_grid_matching_graph_layout/Solution.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ public int[][] constructGridLayout(int n, int[][] edges) {
5757
if (row2 >= 0) {
5858
return getInts(n, st, row2, seen, als);
5959
}
60+
return getInts(n, seen, st, als, cs);
61+
}
62+
63+
private int[][] getInts(int n, boolean[] seen, int st, ArrayList<Integer>[] als, int[] cs) {
64+
int[][] res;
6065
final ArrayList<Integer> al = new ArrayList<>();
6166
boolean f = true;
6267
seen[st] = true;

0 commit comments

Comments
 (0)