Skip to content

Commit 23068e3

Browse files
authored
Update find-palindrome-with-fixed-length.cpp
1 parent 205a3c4 commit 23068e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/find-palindrome-with-fixed-length.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class Solution {
66
public:
77
vector<long long> kthPalindrome(vector<int>& queries, int intLength) {
8-
const int64_t max_x = pow(10, (intLength + 1) / 2) - 1;
8+
const long long max_x = pow(10, (intLength + 1) / 2) - 1;
99
const auto& reverse = [](auto x) {
1010
decltype(x) result = 0;
1111
for (; x; x /= 10) {

0 commit comments

Comments
 (0)