As pointed by the poster of this question: Dynamic Programming Algorithm Code Review, our FAQ states the following is on-topic:
- Code correctness
However, on the basis of various past questions on Meta the policy is clearly that non-working is off-topic for this site.
I think the intention of the faq is to say that pointing out flaws in the logic that the poster has missed is on-topic, but posters asking people to find their logical flaws is not on-topic. But I think the FAQ could use some clarification on this point.