# Leetcode 9 - Palindrome number

Note:

• Convert the int to a string might cause overflow.
• Thought about using % but how do you know you’ve half way through it?
• Well, when x < num, (num is the reversed second half), we’ve got the second half reversed.
• Edge case: 10, 120, 110, etc. because we can’t have a leading zero.

Question:

Given an integer x, return true if x is palindrome integer.

An integer is a palindrome when it reads the same backward as forward.

• For example, 121 is a palindrome while 123 is not.

Example:

Code: