Skip to content

Commit 18e0529

Browse files
authored
Update Maximum score after splitting a string.cpp
1 parent 0b77873 commit 18e0529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Maximum score after splitting a string.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Solution {
22
public:
33
int maxScore(string s) {
44
int maxScore=0;
5-
int lzero=0,rones0;
5+
int lzero=0,rones=0;
66
for(char c:s) {
77
if(c=='1') {
88
rones++;

0 commit comments

Comments
 (0)