Unique Numbers
Submissions: 4325   Accuracy:

49.02%

  Difficulty: Basic   Marks: 1

In given range, print all numbers having unique digits. e.g. In range 1 to 20 should print all numbers except 11.

Input:
First line consists of T test cases.
The only line of every test case consists of two integers m and n separated by a space.

Output:
For each test case print all unique numbers separated by space.

Constraints:
1<=T<=100
1<=m,n<1000

Example:
Input:

1
10 20
Output:
10 12 13 14 15 16 17 18 19 20

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Saksham Raj Seth
Author: saksham seth


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.