Available question text
Given many queries on a string asking whether a substring can be rearranged and with up to k single-character replacements turned into a palindrome, the task is to quickly compute the substring's character parities (or odd counts) using prefix counts/bitmasks and check if the number of odd-frequency letters can be fixed with k replacements (equivalently floor(oddCount/2) <= k, with up to one odd allowed for odd-length substrings).
Related questions
Continue with questions that share topics or the same question type.
- Can Make Arithmetic Progression From Sequence
Coding
- Check if One String Swap Can Make Strings Equal
Coding
- Count Paths That Can Form a Palindrome in a Tree
Coding · Bit Manipulation · Depth-First Search · Hash Table
- Longest Palindrome After Substring Concatenation 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 1177. Can Make Palindrome from Substring
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source