Skip to content

Commit 4cb34b4

Browse files
committed
Fixed sonar
1 parent 0bcd06d commit 4cb34b4

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

src/main/java/g3401_3500/s3495_minimum_operations_to_make_array_elements_zero/Solution.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public long minOperations(int[][] queries) {
1515
}
1616
long group;
1717
if (query[1] < v) {
18-
group = query[1] - query[0] + 1;
18+
group = query[1] - query[0] + 1L;
1919
totalReq += group * req;
2020
result += (totalReq + 1) / 2;
2121
continue;

0 commit comments

Comments
 (0)