Can I post a question with an answer?
Posting and answering questions you have already found the answer to
Should I not answer my own questions?
Should I ask questions I already know the answer to and answer them myself?
Can I answer my own questions, even if I knew the answer before asking?
I would like to share on StackOverflow code I have written to solve a problem.
After searching the Internet in vain for a solution, I solved it myself, and want to help others who might have the same problem.
What is the best way to do this? Should I ask a question and answer it myself?