
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Generate all numbers with sequential digits and check if they are in the given range.
Fix the starting digit then do a recursion that tries to append all valid digits.