Created
April 19, 2018 22:40
-
-
Save bilbo3000/6f01589d5388b6a22cfae75bb68b19ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution { | |
public int findKthLargest(int[] nums, int k) { | |
Arrays.sort(nums); | |
return nums[nums.length - k]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment