Skip to content

Commit

Permalink
Update 906.Super-Palindromes.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wisdompeak authored May 8, 2021
1 parent 6091a71 commit 21dae54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Others/906.Super-Palindromes/906.Super-Palindromes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ class Solution {
{
long long a = stoll(L);
long long b = stoll(R);

int start = max(1, (int)pow(10, L.size()/4-1));
int end = (int)pow(10, R.size()/4+1);
int start = pow(10, max(0, (int)L.size()/4-1));
int end = pow(10, max(0, (int)R.size()/4+1));

int count = 0;

Expand Down

0 comments on commit 21dae54

Please sign in to comment.