Sometimes I see someone post a question that amounts to "I have a function that doesn't work; what's wrong with it?" They post the code to the function; usually it's an MCVE. The problem is that it's often just... wrong. It's not that there's one mistake; it's that it's a completely incorrect algorithm, or there are so many issues with the code that the right answer is very nearly "start over and try again".
My reaction to this is usually a close vote as "Too Broad", given the breadth of issues usually in play, as well as a comment essentially saying that there are a lot of issues. However, I often see people answer these questions by simply posting a complete rewrite of the function which behaves correctly. What is the right answer in this case? Is posting a fresh chunk of code considered a good answer, or should the question be closed?
For context, this is the question that made me think of this.