#K16101. Filter Unique ISBN Numbers with Unique Digits
Filter Unique ISBN Numbers with Unique Digits
Filter Unique ISBN Numbers with Unique Digits
You are given a list of ISBN numbers. An ISBN number is considered valid for this problem if and only if it contains all unique digits (i.e. each digit appears exactly once). Your task is to filter the list and output only the ISBN numbers that have all unique digits. If no ISBN numbers meet this criteria, output the string No unique ISBN numbers found
.
Note: An ISBN number is provided as a string of digits. For each ISBN, check if the count of unique digits equals the total number of digits in the number. The order of ISBN numbers in the output should remain the same as in the input.
inputFormat
The input begins with an integer N (1 ≤ N ≤ 10^5) representing the number of ISBN numbers. This is followed by N lines, each containing a single ISBN number (a string of digits).
outputFormat
Output the ISBN numbers that have all unique digits, each on a new line. If no such ISBN is found, output the line "No unique ISBN numbers found".## sample
3
1234567890
9457216803
1023456789
1234567890
9457216803
1023456789
</p>