Are you generating all possible numbers and then checking each one to see if the digits are increasing or not?
I did that first, and it works for a low number of digits, but takes expoentially longer with larger numbers of digits.
There's a better way of approaching the problem.
No, they mean that doing nothing but returning an empty list will time out. Which I've observed as well :/
Are you generating all possible numbers and then checking each one to see if the digits are increasing or not?
I did that first, and it works for a low number of digits, but takes expoentially longer with larger numbers of digits.
There's a better way of approaching the problem.
Try again, it should be fixed now.