Skip to content

Commit 042734c

Browse files
authored
Update longest-chunked-palindrome-decomposition.cpp
1 parent 14cfd2f commit 042734c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/longest-chunked-palindrome-decomposition.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Solution {
99
static const uint64_t D = 26;
1010
int result = 0;
1111
int left = 0, right = 0, l = 0;
12-
uint64_t pow_D = 1ull;
12+
uint64_t pow_D = 1;
1313
for (int i = 0; i < text.length(); ++i) {
1414
left = (D * left + (text[i] - 'a')) % MOD;
1515
right = (pow_D * (text[text.length() - 1 - i] - 'a') + right) % MOD;

0 commit comments

Comments
 (0)