2

Yesterday I posted a comment on this question with a link to an answer on StackOverflow that answered this question. Now the OP wants me to post it as an answer so they can accept it. I am not sure what to do because:

On one hand, this is the answer that the OP was looking for, so I want to post it as an answer.

On the other hand, I can't post just the link because I would flag that as "not an answer" and I don't feel like I should just copy someone else's answer into mine.

What should I do in this situation?

  • Flag it for closing (I just did), as it belongs on SO anyway, and it's a duplicate of an SO question. – Cyclops Oct 9 '11 at 18:25
  • 1
    @Cyclops That looks like it is probably right in this case, so I also flagged it. – murgatroid99 Oct 9 '11 at 18:45
3

So don't just post a link. Describe the algorithm, note where you found the implementation and why it works so well, maybe go into a bit of detail on the shortcomings of the OP's naive design and how they're avoided...

You know, write a proper answer that can be read and understood without following a link or blindly copy-pasting code.

  • 1
    This looks like it is probably the best solution in general, but as Cyclops pointed out this particular question was a duplicate. – murgatroid99 Oct 9 '11 at 18:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .