1300. Sum of Mutated Array Closest to Target
Description
**Input:** arr = [4,9,3], target = 10
**Output:** 3
**Explanation:** When using 3 arr converts to [3, 3, 3] which sums 9 and that's the optimal answer.**Input:** arr = [2,3,5], target = 10
**Output:** 5**Input:** arr = [60864,25176,27249,21296,20204], target = 56803
**Output:** 11361ac
Previous1299. Replace Elements with Greatest Element on Right SideNext1301. Number of Paths with Max Score
Last updated