Skip to content

Commit d83da29

Browse files
authored
Update longest-nice-substring.cpp
1 parent 9572196 commit d83da29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/longest-nice-substring.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Solution {
1616
if (prev == -1 && i == size(s)) {
1717
return s;
1818
}
19-
const auto tmp = longestNiceSubstring(s.substr(prev + 1, i - prev - 1));
19+
auto tmp = longestNiceSubstring(s.substr(prev + 1, i - prev - 1));
2020
if (size(tmp) > size(result)) {
2121
result = move(tmp);
2222
}

0 commit comments

Comments
 (0)