← Goldman Sachs questions

Codeforces 1000B Coding Problem

Filed under Goldman Sachs

Given a sequence of light durations for a lamp, you can flip exactly one segment of 'off' time to 'on' time. Maximize the total 'on' duration.

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 Goldman Sachs questions

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