Find the nearest palindrome for a given integer
Anonymous
Offered two solutions, one was the brute force approach where you search from the integer until you find a palindrome. Second was to reverse the the first half of the integer and replace the second half with the reversed half.
Check out your Company Bowl for anonymous work chats.