This is similar but different to this question. I am often reading through current questions and, as I am trying to think of an answer see a helpful hint in the comments.
Is it unethical to base an answer on someone else's comment?
There are a couple of cases to consider here: sometimes a short comment might be as short as "use MVT," and that is enough to trigger the rest of the answer for me. In this case, my intuition says that the answer is "mostly" my own work. I would probably post as myself and begin with "as ____ said above, we can use the MVT... ." In this case, it can even be difficult to know if I thought of the idea first or got it from the comments.
Other times someone posts an idea but isn't sure how to finish. If I see where they are going and can finish the answer for them, who gets credit?
In the most extreme case, someone basically posts a full answer as a comment, in which case the consensus seems to be to post as community if you want to answer.
What are peoples' thoughts on this? I suppose these might just require context. On the one hand, we can err on the side of not taking undue credit and just post as community. On the other, if it feels like you come up with "most" of the answer, should you just take the credit?
Note: to distinguish from the linked question, I am not referring to the case where an old question has no answers but a partial answer in the comments.