LeetCode 1005. Maximize Sum Of Array After K Negations
Description https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/ Given an array nums of integers, we must modify the array in the following way: we choose an i and replace nums[i] with -nums[i], and we repeat…