Computer Science, asked by Akash5257, 11 months ago

Difference between the adjacent digits of is exactly one javascript

Answers

Answered by sarimkhan112005
0

Answer:

Explanation:

Given two integers ‘n’ and ‘m’, find all the stepping numbers in range [n, m]. A number is called stepping number if all adjacent digits have an absolute difference of 1. 321 is a Stepping Number while 421 is not.

Examples :

Input : n = 0, m = 21

Output : 0 1 2 3 4 5 6 7 8 9 10 12 21

Input : n = 10, m = 15

Output : 10, 12

Similar questions