Self Dividing Numbers
A number is self dividing if it contains no zero digit and it is divisible by each of its own digits.
Return, in increasing order, every self dividing number between left and right, both included.
Example 1
left 1
right 22
returns [1,2,3,4,5,6,7,8,9,11,12,15,22]
10 has a zero digit, 13 is not divisible by 3, and so on.
Constraints
1 <= left <= right <= 10000
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.