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 5212548 commit 228f63bCopy full SHA for 228f63b
top-k-frequent-elements/KwonNayeon.py
@@ -30,4 +30,5 @@ def topKFrequent(self, nums: List[int], k: int) -> List[int]:
30
sorted_frequency = sorted(frequency.items(), key=lambda x: x[1], reverse=True)
31
for i in range(k):
32
result.append(sorted_frequency[i][0])
33
- return result
+ return result
34
+
0 commit comments