I am stuck on some competitive programming problem. I think the proper approach to solve the problem is dynamic programming and I have implemented my solution but I keep getting wrong answer. If I think my algorithm is correct and the problem is in the implementation, can I ask my question here?
Edit: Suppose I ask a question on stackoverflow about a competitive programming question ( not an ongoing contest ) providing the link to the problem, a brief description of the problem, my algorithm and a link to the implementation. And ask what is wrong with my code or algorithm that I keep getting wrong answer? This means that I had no problem in implementing my algorithm and it works fine, but there could be a logical error in my implementation that shows itself on some special cases or my algorithm isn't optimal or it is completely wrong. Would it be on topic?