Get Palindromic

Given an integer n, print all palindromic numbers from 1 to n.

Palindromes are those numbers that reads the same backwards as forwards.

Note : Order of numbers doesn't matter.
Constraints :

1 <= n <= 10^9

Input format :
Integer n
Output Format :
Print numbers in different line
Sample Input 1 :
12
Sample Output 1 :
1
2
3
4
5
6
7
8
9
11

Comments

Popular posts from this blog

MySQL Multi Source Master Slave Replication using GTID

Access and modify all the resources of our Wiki.js using WikiJS API

How to setup an Nginx reverse proxy with a SSL certificate in XWIKI