Symmetrical Numbers
MATH
STRING

Problem

Given an integer n, return true if n is a symmetrical number (reads the same forwards and backwards), and false otherwise.

Examples

isNumberSymmetrical(7887) // true isNumberSymmetrical(12321) // true isNumberSymmetrical(45654) // false
Loading...