Skip to content

Commit 7c8a11b

Browse files
committed
Time: 7 ms (15.33%), Space: 18.1 MB (20.87%) - LeetHub
1 parent b40fb12 commit 7c8a11b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Solution:
2+
def getSneakyNumbers(self, nums: List[int]) -> List[int]:
3+
return [x[0] for x in Counter(nums).most_common(2)]

0 commit comments

Comments
 (0)