Sometimes there's a clear line between when you should post on StackOverflow and when you should post on CodeReview.
So it was pretty surprising to see this question getting so much positive feedback:
Print all numbers whose nonzero digits are in ascending order
It's an interesting little program, but the question does not specify a specific problem. It states that the "algorithm seems unnecessarily complicated and time-consuming" and that "time is very important for my application".
But the asker never specifies the time constraint his program is under, or how much time his app is currently consuming. He doesn't specify the actual problem, nor give us a goal he is trying to achieve (for example, "It's taking 100ms, it must consume less than 50ms"). It's as if he's simply asking for others to help improve his code without any real requirement/problem.
I see questions like this quite often. It's hard to tell when the program is under a mandatory constraint (making it a problem fit for StackOverflow) or an optional constraint (it's not needed, but the asker wants improved performance for no mandatory reason).
My Question
Do I redirect the asker to CodeReview if they cannot supply a mandatory time constraint as well as the amount of time their program currently consumes? Or do I leave it on StackOverflow, even if a time constraint is never given?