mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 08:50:15 +08:00
update 0347.前K个高频元素 改go代码一处时间复杂度错误
This commit is contained in:
@ -271,7 +271,7 @@ func (h *IHeap) Pop() interface{}{
|
||||
}
|
||||
|
||||
|
||||
//方法二:利用O(logn)排序
|
||||
//方法二:利用O(nlogn)排序
|
||||
func topKFrequent(nums []int, k int) []int {
|
||||
ans:=[]int{}
|
||||
map_num:=map[int]int{}
|
||||
|
Reference in New Issue
Block a user