Tap here to switch tabs
Problem
Submissions

Problem: Strictly Palindromic Number

med
30 min
Try to solve the Strictly Palindromic Number problem.

Statement

An integer n is strictly palindromic if, for every integer base bb from 22 to n −2- 2 inclusive, the representation of n in base bb is palindromic.

Given an integer n, return true if n is strictly palindromic, and false otherwise.

Note: A sequence is palindromic if it reads identically forwards and backwards.

Constraints:

  • 4≤4 \leq n ≤105\leq 10^5

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Strictly Palindromic Number

med
30 min
Try to solve the Strictly Palindromic Number problem.

Statement

An integer n is strictly palindromic if, for every integer base bb from 22 to n −2- 2 inclusive, the representation of n in base bb is palindromic.

Given an integer n, return true if n is strictly palindromic, and false otherwise.

Note: A sequence is palindromic if it reads identically forwards and backwards.

Constraints:

  • 4≤4 \leq n ≤105\leq 10^5