목록QuickSelect (1)
취미가 좋다
215. Kth Largest Element in an Array
https://leetcode.com/problems/kth-largest-element-in-an-array/ Kth Largest Element in an Array - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Solution import random class Solution: def findKthLargest(self, nums, k): k = len(nums) - k return self.quick(nums, k) def quick(self, nu..
알고리즘 문제풀이/Leetcode
2021. 9. 3. 23:40