Skip to content

Commit fd896c8

Browse files
committed
Update shortest-palindrome.cpp
1 parent 664c458 commit fd896c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/shortest-palindrome.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Solution {
1212
// Assume s is (Palindrome)abc,
1313
// A would be (Palindrome)abccba(Palindrome).
1414
string A = s + rev_s;
15-
vector<int> prefix(move(getPrefix(A)));
15+
auto prefix = getPrefix(A);
1616
// The index prefix.back() of A would be:
1717
// (Palindrome)abccba(Palindrome)
1818
// ^

0 commit comments

Comments
 (0)