Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1707a11

Browse files
Merge pull request vJechsmayr#410 from h5jam/master
0561_Array_Partition_I.py
2 parents c270f37 + bbb68db commit 1707a11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎LeetCode/0561_Array_Partition_I.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Solution:
2+
def arrayPairSum(self, nums: List[int]) -> int:
3+
return sum(sorted(nums)[::2])

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /