The difference between β9β and β0β is not considered as 1.
Letβs say 'N' = 25. The jumping numbers less than or equal to 25 are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 21, 23. In all these numbers the adjacent digits differ by 1.
The first line of input contains an integer βTβ representing the number of test cases.
The first and the only line of every test case contains the positive integer βNβ.
For each test case, print a single line containing less than or equal to 'N' integers representing all the jumping numbers in sorted order.
You do not need to print anything, it has already been taken care of. Just implement the given function.
1 <= T <= 100
1 <= N <= 10^8
Time Limit: 1 sec
The steps are as follows:
The steps are as follows:
The steps are as follows: