Skip to content

Commit eb1c165

Browse files
committed
top-k-frequent-elements solve
1 parent 4841b41 commit eb1c165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

top-k-frequent-elements/sun912.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ def topKFrequent(self, nums: List[int], k: int) -> List[int]:
2121
for n in freq[i]:
2222
result.append(n)
2323
if len(result) == k:
24-
return result
24+
return result

0 commit comments

Comments
 (0)