Skip to content

Commit 235eeeb

Browse files
committed
Fixed sonar
1 parent 4ecda88 commit 235eeeb

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/g3301_3400/s3350_adjacent_increasing_subarrays_detection_ii

1 file changed

+2
-1
lines changed

src/main/java/g3301_3400/s3350_adjacent_increasing_subarrays_detection_ii/Solution.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ public int maxIncreasingSubarrays(List<Integer> nums) {
1313
}
1414
int ans = 1;
1515
int previousLen = Integer.MAX_VALUE;
16-
for (int i = 0; i < n; ) {
16+
int i = 0;
17+
while (i < n) {
1718
int j = i + 1;
1819
while (j < n && a[j - 1] < a[j]) {
1920
++j;

0 commit comments

Comments
 (0)