Coders Packet

Finding The Number Of Integers Between A Given Range In Python

By Rajitha Gondipalli

In this program, we will find the number of integers that are present in the given unique inclusive range of numbers.

Unique Number:

           A Unique number is a number that doesn't have the repetition of digits. Given a range of integers [a,b] here a and b are inclusive, we will find  the Number of Unique Numbers in that range.
           Example: 334 - Not Unique; 498- Unique(If no unique number is present print "Not Unique Number").


Input     : 10 15
output   : 5


Input     : 220 789
output   : 408


Input     : 1100 1199
output   : No Unique Number

Download Complete Code


No comments yet