34. Palindrome Number
Foundation1000 ms256 MBSolved by 0%
Read a non-negative integer and print Yes if it reads the same
forwards and backwards, or No if it does not.
Constraints - `0 ≤ n ≤ 1000000000`
Input
A single line containing one integer n.
Output
Print exactly one word: Yes or No.
Input1221
OutputYes
Noteis an even-length palindrome
Input1234
OutputNo
Noteis not a palindrome
Hints
Four rungs, in order. The last two open once you have submitted an attempt. A wrong one counts.
Hint 1Where to start
Hint 2The approachOpen hint 1 first. This one carries on from it.
Hint 3PseudocodeOpen hint 2 first. This one carries on from it.
Hint 4Full solutionOpen hint 3 first. This one carries on from it.