Amazon Interview Question

Given an integer, write a method to find if it is a palindrome.

Interview Answers

Anonymous

Dec 3, 2017

Take the input and convert it to a string. Reverse this string and compare to the original. If they are equal then the integer is a palindrome.

Anonymous

Dec 15, 2017

How did you do on the second part of the online challenges? did you pass all test cases?