Ezvor

1215. Stepping Numbers

MediumMath Preparing judge… LeetCode
MathBacktrackingBreadth-First Search

Hints

Hint 1
Try to generate the numbers using recursion.
Hint 2
In one step in the recursion, add a valid digit to the right of the current number.
Hint 3
Save the number if it's in the range between low and high.