Count numbers with non repeating digits less than n
Idea:
- Count special ints with digits smaller than
n
. - Count special ints with digits the same than
n
.
- Count special ints with digits the same than
n
. Use345
as an example.- Count special ints like
1xx
and2xx
, where45
is not a limitation here. - Count special ints like
3xx
, which is the same as special ints smaller than45
and without digit3
.
- Count special ints like
Comments
Post a Comment