Check Palindrome Number Problem

Check Palindrome Number Problem — ExecCode School DSA Practice

Solve the Check Palindrome Number problem on ExecCode. Free online school DSA practice in Numbers & Math Logic. Write and run code in Java, C++, Python — no signup required to run.

Problem description

You are given a number. Your task is to see if this number reads exactly the same both forwards and backwards. For example, 121 is the same forwards and backwards. If it is, print "Yes". If it's not, print "No".

Examples

Input 121; Output Yes. Input 123; Output No

Constraints

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

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