Skip to content

Commit 7a15abe

Browse files
committed
Update Solution.java
1 parent ea7a7e8 commit 7a15abe

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/g3101_3200/s3101_count_alternating_subarrays

1 file changed

+1
-1
lines changed

src/main/java/g3101_3200/s3101_count_alternating_subarrays/Solution.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public long countAlternatingSubarrays(int[] nums) {
1818
end++;
1919
}
2020
}
21-
length = end -(long) start;
21+
length = end - (long) start;
2222
count += (length * (length + 1)) / 2;
2323
return count;
2424
}

0 commit comments

Comments
 (0)