← Walmart questions

Maximize the minimum element in array with range increments

Filed under Walmart

Given an array of N integers, you can pick a subarray of size K and add 1 to its elements up to P times total. Maximize the minimum element in the array after these operations.

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

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