Available question text
Given an even-length binary string, compute the minimum number of bit flips needed so the string can be partitioned into one or more even-length substrings that are each all 0s or all 1s — equivalently, make every maximal run of identical bits have even length. This requires optimizing flips across the string (typically via greedy/DP) to enforce even run lengths with minimal changes.
Related questions
Continue with questions that share topics or the same question type.
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 2914. Minimum Number of Changes to Make Binary String Beautiful
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source