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 you to find the largest value at an index in a positive array, with neighboring values differing by at most one and total sum within a limit.

Statement

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