There have been instances where I have come across a couple of answers that have been exactly copied from another user's answer including code, to similar type of question. I don't think there is anything wrong with learning and then answering similar question yourself later, but I feel there must be an acknowledgement given to the original answerer in any form, be it reputation, if the answer gets selected later, or batch or literally anything that provides some credit to the original answerer.
Also I don't see any reason how completely copying an answer is justified.