It really depends on what and how much needs to be changed. It is important to answer the following question for your self:
Will future visitors of my question be able to solve their similar problem with this answer.
You have a lot of context that let you fully grasp the issue and understand how the few lines in the answer puts you, in your context, on the right track. Visitors probably don't have that context. For the question and the answer to be of quality/value we should aim for clarity.
Depending on the size of the salvage operation:
- leave a comment and ask for an edit to include information that was overlooked/needs clarification
- edit the answer to add just that amount of context/fix that might be missed/overlooked by users (this includes a typo)
edit the answer to add your fully working solution, clearly separated from the content the answerer provided(only if already CW)
- add a new answer with your full working solution including the few bits form the earlier answer, attribute to the answer that helped you
- add a new answer that is more a full-copy of the other answers and add a few bits of your own, but make it Community-Wiki before posting.
In the cases were you edit or add your own answer always leave a message for the answerer to indicate that you re-used the answer to turn it into a fully working solution. That might trigger the user to update their post or to review your solution and add valuable tips to it.
If you are below 2K be extremely cautious when suggesting edits to existing answers. Those edits go to be reviewed by at least 3 reviewers who, generally speaking, don't spend much time on the task. Try the comment option first. If you suggest an edit take your time to ALSO add a clear and precise explanation why the edit is needed, how it improves the value of the answer.
I would always try to get the user so far to add the stuff that is missing. For your particular example I'm not an SME that can judge if a rigorous edit of that answer is needed.