Skip to content

Commit 4fd70cb

Browse files
committed
Runtime: 153 ms (Top 12.53%) | Memory: 26.2 MB (Top 15.03%)
1 parent dc81057 commit 4fd70cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/M/Minimum Number of Flips to Make the Binary String Alternating/Minimum Number of Flips to Make the Binary String Alternating.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
// Runtime: 153 ms (Top 12.53%) | Memory: 26.2 MB (Top 15.03%)
12
class Solution {
23
public:
3-
int minFlips(string s)
4+
int minFlips(string s)
45
{
56
int n = s.size();
67
string ss = s+s;
@@ -25,4 +26,4 @@ class Solution {
2526
}
2627
return ans;
2728
}
28-
};
29+
};

0 commit comments

Comments
 (0)