Kth Largest Element

思路:
find kth smallest 马甲,直接找nums.length - k + 1 小的。

评论

此博客中的热门博文

776. Split BST

3. Longest Substring Without Repeating Characters

42. Trapping Rain Water