Skip to content

Commit 028bf77

Browse files
authored
Update digit_counts.py
1 parent 718c8a1 commit 028bf77

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

digit_counts.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# coding: utf-8
22

33
class Solution:
44
# @param k & n two integer
@@ -18,4 +18,6 @@ def check_k(self, i, k):
1818
if (i % 10) == k:
1919
ret += 1
2020
i /= 10
21-
return ret
21+
return ret
22+
23+
# medium: http://lintcode.com/zh-cn/problem/digit-counts/

0 commit comments

Comments
 (0)