Skip to content

Commit fdfccd9

Browse files
authored
Update confusing-number-ii.py
1 parent 0981233 commit fdfccd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/confusing-number-ii.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def validCountInFullLength(n): # count unconfusing numbers in the pattern of [0
126126
p //= len(lookup)
127127
return total
128128

129-
def f(n):
129+
def f(n): # count confusing numbers in the range of [0, n]
130130
return totalCount(n) - validCountInLessLength(n) - validCountInFullLength(n)
131131

132132
return f(n) - f(0) # f(0) is always 0 and could be ignored

0 commit comments

Comments
 (0)