I always prefer to check facts if I can. Let me join "other side" for a moment:
09:57 --- you post the answer with 2 points
10:39 --- you add third point
10:59 --- OP post his answer with his working code
12:22 --- you ask on meta
12:58 --- you copy/paste code from OP answer into yours
13:18 --- @Servy answer on meta
And next day the OP answer is downvoted and deleted.
The asker has integrated my suggestions with the original code and posted the full reviewed code in another answer
This is totally fine to take someone pseudo-code or suggested solution, then adapt it and post as an answer. Maybe (I am not blaming) your answer lack very important for OP detail, which makes your answer slightly less than perfect.
I did the same (posting own answer) several times and I am going to do so.
The main aim is to make the best answer for future readers. So they don't have to waste time, thinking of how to adapt your pseudo-code or fighting other problems your answer didn't mentioned.
Of course this can be abused. So if there is a tendency (I am not checking this) - the OP should be warned, his answer deleted, etc.
What can I do in this situation?
Asking on meta (after trying google-fu, someone may asked similar question) is the best and you did it right. Other points are answered by @Servy.
What you did wrong:
- Acting before you receive the answer, why do you ask then?
- Copy/paste code from other answer. This is called plagiarism.
Informed
badge. Maybe someone ought to tell 'im this.5. Post about it on Meta SO and ride the upvotes due to the Meta Effect