In this question, this answer was given 2 minutes after this one. Even I answered the question, with a different approach.
The first answer had some errors. And, the second answer, I think, is exactly the same as the first one, just correcting the errors. The answerer of the first answer corrected it, and then it became a duplicate of the second answer (although it still has some typo errors).
Are such answers acceptable, which correct some previous answers?
PS: I now see that the OP has accepted the second answer (i.e, the corrected one).