Skip to content

Instantly share code, notes, and snippets.

@bilbo3000
Created April 19, 2018 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bilbo3000/6f01589d5388b6a22cfae75bb68b19ae to your computer and use it in GitHub Desktop.
Save bilbo3000/6f01589d5388b6a22cfae75bb68b19ae to your computer and use it in GitHub Desktop.
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