Thumbtack interview question

Find the nearest palindrome for a given integer

Interview Answers

Anonymous

25 Oct 2017

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.

Anonymous

2 Aug 2018

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

30 Jan 2021

The key in these questions is to cover the fundamentals, and be ready for the back-and-forth with the interviewer. Might be worth doing a mock interview with one of the Thumbtack or ex-Thumbtack Software Engineer(Internship) experts on Prepfully? They give real-world practice and guidance, which is pretty helpful. prepfully.com/practice-interviews

Thumbtack Interview Question: Find the nearest palindrome for a given integer | Glassdoor