Skip to content

Commit 24c2697

Browse files
committed
Fixed sonar
1 parent adffcae commit 24c2697

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/g3201_3300/s3276_select_cells_in_grid_with_maximum_score

1 file changed

+2
-1
lines changed

src/main/java/g3201_3300/s3276_select_cells_in_grid_with_maximum_score/Solution.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public int maxScore(List<List<Integer>> grid) {
2020
}
2121
Arrays.sort(arr, (a, b) -> b[0] - a[0]);
2222
int[] dp = new int[1 << n];
23-
for (int i = 0; i < arr.length; ) {
23+
int i = 0;
24+
while (i < arr.length) {
2425
boolean[] seen = new boolean[n];
2526
seen[arr[i][1]] = true;
2627
int v = arr[i][0];

0 commit comments

Comments
 (0)