首页
Java
登录
6mi
u
盘
搜
搜 索
Java
347. Top K Frequent Elements
347. Top K Frequent Elements
xiaoxiao
2021-02-28
72
class Solution(object): def topKFrequent(self, nums, k): """ :type nums: List[int] :type k: int :rtype: List[int] """ dic=zip(*collections.Counter(nums).most_common(k))[0] return dic
转载请注明原文地址: https://www.6miu.com/read-76135.html
技术
最新回复
(
0
)