Skip to content

Commit 592bd77

Browse files
authored
Update Top K Frequent Elements - Leetcode 347.py
1 parent e3f467b commit 592bd77

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Top K Frequent Elements - Leetcode 347.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ def topKFrequent(self, nums: List[int], k: int) -> List[int]:
1818
if len(ret) == k:
1919
break
2020

21-
return ret
21+
return ret
22+
23+
# Time Complexity: O(n)
24+
# Space Complexity: O(n)

0 commit comments

Comments
 (0)