initialize 347 frequency

This commit is contained in:
Jacob Delgado 2023-08-08 23:28:37 -07:00
parent 346abcface
commit efd5cbd3ba

View File

@ -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))