Skip to content

Commit 6b8b9fe

Browse files
authored
Create Solution2.py
1 parent f0785f5 commit 6b8b9fe

File tree

1 file changed

+3
-0
lines changed
  • solution/0200-0299/0215.Kth Largest Element in an Array

1 file changed

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

0 commit comments

Comments
 (0)