Skip to content

Commit fbca6a9

Browse files
committed
Runtime: 67 ms (Top 31.53%) | Memory: 13.9 MB (Top 60.59%)
1 parent 9e88663 commit fbca6a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/algorithms/M/Maximum Score After Splitting a String/Maximum Score After Splitting a String.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Runtime: 67 ms (Top 31.53%) | Memory: 13.9 MB (Top 60.59%)
12
class Solution:
23
def maxScore(self, s: str) -> int:
34
m0=0
@@ -23,9 +24,8 @@ def maxScore(self, s: str) -> int:
2324
if max_<c1+c0:
2425
max_=c1+c0
2526
idx=i
26-
max_=max(max_,c1+c0)
27+
max_=max(max_,c1+c0)
2728
i+=1
2829
if idx==l-1:
2930
return max_-1
3031
return max_
31-

0 commit comments

Comments
 (0)