โ† Amazon questions

Count palindromes up to n

Filed under Amazon

Given an integer n, write a function to count the total number of palindromic integers from 1 up to n (inclusive).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.