initialize 347 frequency
This commit is contained in:
parent
346abcface
commit
efd5cbd3ba
@ -0,0 +1,11 @@
|
||||
def topKFrequent(nums, k):
|
||||
"""
|
||||
:type nums: List[int]
|
||||
:type k: int
|
||||
:rtype: List[int]
|
||||
"""
|
||||
frequency = {}
|
||||
for x in nums:
|
||||
|
||||
|
||||
print(topKFrequent([1,1,1,2,2,3], 2))
|
||||
Loading…
Reference in New Issue
Block a user