I struggle with following problem: find number of palindromes <= N (1<=N<=10^5000). Also you should use DP. Please help.
Number of palindromes not greater than N
I struggle with following problem: find number of palindromes <= N (1<=N<=10^5000). Also you should use DP. Please help.