Palindrome Number Problem

Palindrome Number Problem — ExecCode School DSA Practice

Solve the Palindrome Number problem on ExecCode. Free online school DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.

Problem description

You are given a whole number for the problem Palindrome Number. Your task is to solve Palindrome Number. Determine if a given integer is a palindrome. An integer is a palindrome when it reads the same forwards and backwards.

Examples

Input 121; Output True. Input -121; Output False

Constraints

-2^31 <= N <= 2^31 - 1

Practice Palindrome Number free on ExecCode. Browse DSA problems, topic map, and placement guides.