At times, I have a problem and I already have a solution to it, but I still consult Stack Overflow to see if there are more elegant or more performant solutions.
Usually I then find one or more questions with my exact problem, each with a number of valid answers - some of them better than my approach, some worse.
Should I still post my answer to give other readers more options, more flavours, or should I not add my own answer and vote for the already topmost answer to streamline the process of solution-finding for future readers?