← OYO questions

Maximum sum of movie ratings with K flips

Filed under OYO

Given an integer array `ratings` and an integer `k`, choose an element and negate it (`rating = -rating`) exactly `k` times. You may modify the same element multiple times. Return the maximum possible…

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

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