LeetCode Solution, Easy, 561. Array Partition I
561. Array Partition I
題目敘述
Given an integer array nums of 2n integers, group these integers into n pairs (a1, b1), (a2, b2), ..., (an, bn) such that the sum of min(ai, bi) for all i is maximized. Return the maximized sum.
Example 1:
Input: nums = [1...
blog.taiwolskit.com3 min read