gary@interview:~/interview/coding/561-array-partit….md$
$ cat ./coding/561-array-partition.md
[Coding]

561. Array Partition

────────────────────────────────────────────────────────────

561. Array Partition

class Solution:
    def arrayPairSum(self, nums: List[int]) -> int:
        nums.sort()
        
        res = 0
        i = 0
        
        while i < len(nums):
            res += nums[i]
            i += 2
            
        return res
--tags#Array
$ ls ./coding/ | grep -v 561-array-partition
265. Paint House II256. Paint House143. Reorder List1762. Buildings With an Ocean View
← cd ../codingcd ~