:type nums: List[int] :type k: int :rtype: int
(self, nums, k)
| 123 | |
| 124 | |
| 125 | def findKthLargest(self, nums, k): |
| 126 | """ |
| 127 | :type nums: List[int] |
| 128 | :type k: int |
| 129 | :rtype: int |
| 130 | """ |
| 131 | |
| 132 | return sorted(nums, reverse=True)[k-1] |
| 133 | |
| 134 | s = Solution() |
| 135 | a = list(range(50000)) |
nothing calls this directly
no outgoing calls
no test coverage detected