There was an error while loading. Please reload this page.
1 parent f1e3dd2 commit 59ebae8Copy full SHA for 59ebae8
1 file changed
leetcode3/최원준/3945. Digit Frequency Score.py
@@ -0,0 +1,3 @@
1
+class Solution:
2
+ def digitFrequencyScore(self, n: int) -> int:
3
+ return sum(int(num) * freq for num, freq in Counter(str(n)).items())
0 commit comments