CodingReported in a candidate post, Jul 2025
Max length of substring of 1s after k substring reversals
Filed under MathWorks
The question
Given a binary string and at most k operations where you can reverse any substring, find the maximum length of a substring containing only '1's that can be obtained.
No write-up yet. Related questions below have one.
Related MathWorks questions
Collected from public candidate posts and coding forums. Updated Nov 2026.