← Swiggy questions
CodingReported in a candidate post, Sep 2022

Maximum gain in a two-player circular array game

Filed under Swiggy

Two players alternately take a value from either end of an array of scores, each trying to finish with a higher total than the opponent. Assuming both play optimally, return the maximum score…

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 Swiggy questions

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