PMMockr

QuestionsTechnical PMTop-Interview

Given a string s, return true if the s can be a palindrome after deleting at most one character from it.

Focus on developing an efficient algorithm to determine if the string can be a palindrome with at most one character deletion. Start by implementing a two-pointer technique: one pointer at the beginning and the other at the end of the string. As you compare characters, if they are not equal, consider two scenarios: skipping the character at the left pointer or the right pointer. Ensure you handle edge cases, such as strings of length 0 or 1, and think about the time complexity of your solution. Be prepared to discuss how you would test your solution with various string inputs.

What this question tests

Practise this question under interview conditions. Answer it out loud against a timer with an AI interviewer that asks follow-ups, then review the scored report.

Start a timed mock interview

Related Technical PM questions

All Technical PM questions · Product manager interview questions by skill area