Nov 9, 2020
是的,priorityqueue做不到O(N)
這題的解法可以看這裡哦~
https://leetcode.com/problems/kth-largest-element-in-an-array/discuss/60294/Solution-explained
是的,priorityqueue做不到O(N)
這題的解法可以看這裡哦~
https://leetcode.com/problems/kth-largest-element-in-an-array/discuss/60294/Solution-explained
There are a thousand Angels in a thousand people's eyes. 一千個人有一千個Angel.