Skip to content

Commit 4305f28

Browse files
committed
fix: java code
1 parent baf8937 commit 4305f28

File tree

1 file changed

+2
-2
lines changed
  • solution/3400-3499/3499.Maximize Active Section with Trade I

1 file changed

+2
-2
lines changed

solution/3400-3499/3499.Maximize Active Section with Trade I/Solution.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ public int maxActiveSectionsAfterTrade(String s) {
33
int n = s.length();
44
int ans = 0, i = 0;
55
int pre = Integer.MIN_VALUE, mx = 0;
6-
6+
77
while (i < n) {
88
int j = i + 1;
99
while (j < n && s.charAt(j) == s.charAt(i)) {
@@ -18,7 +18,7 @@ public int maxActiveSectionsAfterTrade(String s) {
1818
}
1919
i = j;
2020
}
21-
21+
2222
ans += mx;
2323
return ans;
2424
}

0 commit comments

Comments
 (0)