Tap here to switch tabs
Problem
Submissions

Problem: Super Palindromes

Try to solve the Super Palindromes problem.

Statement

A positive integer is considered a superpalindrome if it is a palindrome and is also the square of a palindrome.

Given two strings left and right representing positive integers, return the count of superpalindromes in the inclusive range [[left, right]].

Constraints:

  • 1≤1 \leq left.length, right.length ≤18\leq 18

  • left and right consist of only digits.

  • left and right cannot have leading zeros.

  • left and right represent integers in the range [1,1018−1][1, 10^{18} - 1].

  • left is less than or equal to right.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Super Palindromes

Try to solve the Super Palindromes problem.

Statement

A positive integer is considered a superpalindrome if it is a palindrome and is also the square of a palindrome.

Given two strings left and right representing positive integers, return the count of superpalindromes in the inclusive range [[left, right]].

Constraints:

  • 1≤1 \leq left.length, right.length ≤18\leq 18

  • left and right consist of only digits.

  • left and right cannot have leading zeros.

  • left and right represent integers in the range [1,1018−1][1, 10^{18} - 1].

  • left is less than or equal to right.