Easy · Math
Is Palindromic Number
Given an integer n, return true if its decimal digits read the same forwards and backwards (for example 121 or 1221), and false otherwise; negative numbers are never palindromes.
Examples
Example 1
n = 121Output: true
Example 2
n = 1234Output: false
Rebuild it in the studio
Core interview problems are free with a full runner and lessons; Pro opens the complete library.