This question already has an answer here:
I've been concerned about what answer to choose as accepted. I have asked two questions on Stack Overflow. On my second one, there are three answers, and I feel that one of them answers my question better than the others. However, I did not choose this answer. Someone else gave an answer that solved my entire problem, part of which was the question I originally asked. I chose that one, and completely rewrote the function to make it more efficient. I don't know if I made the right choice, and it's a big deal to me that whoever deserves credit gets it. So I guess my real question is this: Is it better to choose the most useful answer or the one that answers the question?