mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 02:53:31 +08:00
Update 1221.分割平衡字符串.md
This commit is contained in:
@ -117,7 +117,7 @@ class Solution:
|
||||
diff -= 1
|
||||
else:
|
||||
diff += 1
|
||||
if tilt == 0:
|
||||
if diff == 0:
|
||||
ans += 1
|
||||
return ans
|
||||
```
|
||||
|
Reference in New Issue
Block a user