We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4841b41 commit eb1c165Copy full SHA for eb1c165
top-k-frequent-elements/sun912.py
@@ -21,4 +21,4 @@ def topKFrequent(self, nums: List[int], k: int) -> List[int]:
21
for n in freq[i]:
22
result.append(n)
23
if len(result) == k:
24
- return result
+ return result
0 commit comments