From bbb68db809fae08c87c13f97241063d756ec3e72 Mon Sep 17 00:00:00 2001 From: h5jam Date: Tue, 6 Oct 2020 22:38:03 +0900 Subject: [PATCH] 0561_Array_Partition_I.py --- LeetCode/0561_Array_Partition_I.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 LeetCode/0561_Array_Partition_I.py diff --git a/LeetCode/0561_Array_Partition_I.py b/LeetCode/0561_Array_Partition_I.py new file mode 100644 index 0000000..1743f89 --- /dev/null +++ b/LeetCode/0561_Array_Partition_I.py @@ -0,0 +1,3 @@ +class Solution: + def arrayPairSum(self, nums: List[int]) -> int: + return sum(sorted(nums)[::2]) \ No newline at end of file