Thumbtack Interview Question: Find the nearest palindrome f... | Glassdoor

Interview Question

Software Engineer(Internship) Interview

Find the nearest palindrome for a given integer

Answer

Interview Answer

2 Answers

0

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.

Interview Candidate on Oct 24, 2017
0

i got this exact same question, so it may have been scripted. Your approach isn't 100% correct but mostly so that may have been why you got rejected.

Anonymous on Aug 2, 2018

Add Answers or Comments

To comment on this, Sign In or Sign Up.