Update 1221.分割平衡字符串.md
This commit is contained in:
parent
563cd82551
commit
1204f0e4ed
|
|
@ -117,7 +117,7 @@ class Solution:
|
||||||
diff -= 1
|
diff -= 1
|
||||||
else:
|
else:
|
||||||
diff += 1
|
diff += 1
|
||||||
if tilt == 0:
|
if diff == 0:
|
||||||
ans += 1
|
ans += 1
|
||||||
return ans
|
return ans
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue