Search⌘ K
AI Features

Maximum Value at a Given Index in a Bounded Array

Maximum Value at a Given Index in a Bounded Array asks for the largest value possible at one position in a positive array, with a bounded sum and neighboring values differing by at most one.

Statement

Given three positive integers, n, index, and maxSum, output the nums[index] by ...