← FactSet questions
CodingReported in a candidate post, Jul 2021

Max consecutive 1s after flipping 0s in K-length subarray

Filed under FactSet

Given a binary array and an integer K, find the maximum number of consecutive 1s possible after flipping all 0s in exactly one contiguous subarray of length K to 1s.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related FactSet questions

Collected from public candidate posts and coding forums. Updated Nov 2026.