bars
📈
notes
search
circle-xmark
⌘
Ctrl
k
copy
Copy
chevron-down
0215_Kth_Largest_Element_in_an_Array
思路1 利用快排的partition
首先假设一共n个数,第k大,就是正数n-k+1个数,目标索引就是n-k
利用快排的partition返回目标索引的原理
Previous
0215_Kth_Largest_Element_in_an_Array
chevron-left
Next
0217_Contains_Duplicate
chevron-right
Last updated
5 years ago