Skip to content

Latest commit

 

History

History

Total Numbers With No Repeated Digits in A Range

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Given a range L, R find total such numbers in the given range such that they have no repeated digits.

12 has no repeated digit.
22 has repeated digit.
102, 194 and 213 have no repeated digit.
212, 171 and 4004 have repeated digits.


Input : 10 12
Output : 2
Explanation : In the given range 
10 and 12 have no repeated digit 
where as 11 has repeated digit.

Input : 1 100
Output : 90