Practice Strictly Palindromic Number
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
An integer n is strictly palindromic if, for every base b between 2 and n - 2 (inclusive), the string representation of the integer n in base b is palindromic. Given an integer n, return true if n is strictly palindromic and false otherwise. A string is palindromic if it reads the same forward and backward.
Source: Strictly Palindromic Number on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
Input
n = 9
Output
false
# Example 2
Input
n = 4
Output
false
Constraints
4 <= n <= 10^5
Related LeetCode Problems
Practice more problems similar to Strictly Palindromic Number.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.