Reported interview periodNot available
Palindrome after at most k deletions
Given a lowercase string and a deletion limit, decide whether removing at most that many characters can leave a palindrome while the surviving characters keep their order.
Practice focusRequirements - Line 1 is the string; line 2 is the integer limit. - Removing nothing is allowed, so a string that already reads the same in both directions always qualifies. - Each deletion is a single character, and characters that are kept never change position relative to each other. - On a mismatched pair, only two moves are worth trying: drop the left character or drop the right one. - Return true or false in lowercase, with no other text and no extra whitespace.…