Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.
Do not convert the integer to string in your main logic if you want to practice numeric approach — but any valid solution that prints correct output is accepted here.
Input: 121
Output: true
Input: -121
Output: false
Input: 10
Output: false
Runner reads a single integer from stdin and expects a single output string true or false (lowercase). Input example: 121 → Output: true.
No submissions yet.
Share numeric vs string solutions, edge cases (negative numbers, trailing zeros), and complexity trade-offs.