FunctionRacerProblemsRace

Self Dividing Numbers

EasyMathPython, JavaScript, TypeScript, Java, C++

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

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More Math problems