← Sprinklr questions
CodingMedium

Maximize 1s by flipping a subarray

Filed under Sprinklr

The question

Given an array of 0s and 1s, flip a single subarray (0 becomes 1 and 1 becomes 0) such that the total number of 1s in the array is maximized.

No write-up yet. Related questions below have one.

Related Sprinklr questions

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