As pointed by the poster of this question: https://codereview.stackexchange.com/questions/8609/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.