Sum of Mutated Array Closest to Target

Try to solve the Sum of Mutated Array Closest to Target problem.

Statement

Given an integer array arr and a target value target, find an integer value such that if all the numbers in arr greater than value are replaced with a value, the sum of ...

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.