Skip to content

Commit 6b5185b

Browse files
committed
✨feat: add 926
1 parent fa6055b commit 6b5185b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LeetCode/921-930/926. 将字符串翻转到单调递增(中等).md

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class Solution {
5757
public int minFlipsMonoIncr(String s) {
5858
char[] cs = s.toCharArray();
5959
int n = cs.length, ans = 0;
60-
int[] g = new int[n + 1];
61-
Arrays.fill(g, 0x3f3f3f3f);
60+
int[] g = new int[n + 10];
61+
Arrays.fill(g, n + 10);
6262
for (int i = 0; i < n; i++) {
6363
int t = s.charAt(i) - '0';
6464
int l = 1, r = i + 1;

0 commit comments

Comments
 (0)