Longest consecutive 1s
Filed under Goibibo
The question
Find the length of the longest consecutive 1s possible by replacing exactly one 0 in an array of 0s and 1s.
No write-up yet. Related questions below have one.
Related Goibibo questions
Collected from public candidate posts and coding forums. Updated Nov 2026.