Search⌘ K
AI Features

Sum of Mutated Array Closest to Target

Sum of Mutated Array Closest to Target asks you to choose a value that replaces every larger array element so the resulting sum is closest to the target, breaking ties downward.

Statement

Given an integer array arr and a target value target, find an integer value ...