Available question text
Given a string s and a budget k of single-step cyclic letter shifts (each operation moves a character to its next or previous letter, wrapping a↔z), find the maximum length of a palindromic subsequence you can obtain with at most k operations. Core challenge: dynamic programming over pairs to maximize palindrome length under a global cost constraint where the cost to match two chars is their minimal cyclic distance.
Related questions
Continue with questions that share topics or the same question type.
- Longest Common Prefix After at Most One Removal
Coding
- Longest Palindromic Subsequence
Coding · Dynamic Programming · String
- Longest Palindromic Subsequence II
Coding
- Check If Digits Are Equal in String After Operations I
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3472. Longest Palindromic Subsequence After at Most K Operations
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source