반응형 코딩 (1) 썸네일형 리스트형 Leetcode 1005. Maximize Sum Of Array After K Negations Given an integer array nums and an integer k, modify the array in the following way: choose an index i and replace nums[i] with -nums[i]. You should apply this process exactly k times. You may choose the same index i multiple times. Return the largest possible sum of the array after modifying it in this way. 주어진 정수 배열과 정수 k를 가지고 다음과 같은 방법으로 배열을 수정해라: 인자 i를 고르고 num[i]의 값을 -num[i]으로 바꿔라. 이 방법을 정확히.. 이전 1 다음