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 665b9bb commit a95f534Copy full SHA for a95f534
top-k-frequent-elements/deepInTheWoodz.py
@@ -9,4 +9,3 @@ def topKFrequent(self, nums: List[int], k: int) -> List[int]:
9
counter[num] = 1
10
11
return [num[0] for num in sorted(counter.items(), key=lambda x: x[1])[-k:]]
12
-
0 commit comments