This post is for recording the notes while reading Coding Interviews

Question 1: Palindrome numbers

Solution1: Convert the target number to String, compare the first letter with the last letter, then compare second letter with the length-1 letter, and so on.
Pros: Easy to implement.
Cons: Need space to store the converted string.