diff --git a/solved/LeetCode/Challenges/2020/January/16.kt b/solved/LeetCode/Challenges/2020/January/16.kt new file mode 100644 index 00000000..0636a338 --- /dev/null +++ b/solved/LeetCode/Challenges/2020/January/16.kt @@ -0,0 +1,6 @@ +class Solution { + fun findKthLargest(nums: IntArray, k: Int): Int { + val sorted = nums.sorted().reversed() + return sorted[k-1] + } +}