Possible Duplicate:
What to do if you find the answer to your own question?
I found the answer with Google not long after posting my question. Do I still get the automatic downvote punishment if the question is self-deleted fast enough?
Possible Duplicate:
What to do if you find the answer to your own question?
I found the answer with Google not long after posting my question. Do I still get the automatic downvote punishment if the question is self-deleted fast enough?
Deleting your own questions can contribute toward a question ban, I believe, though the algorithm isn't exactly public and I'm not sure a deleted question with no activity counts any less than a deleted question that has been down-voted and VtC'd.
If you've found the answer, I'd agree with S.L. Barth - you're much better off posting an answer to the question (and not just a link to the answer you found on Google).
In the long run, this is better off for other readers (who may come across the same problem), better for the site (by providing another quality answer), better off for you (since you may attract better answers), and better for other contributors (who may be able to provide a better answer). As such I would post the answer (to avoid others duplicating work) but I wouldn't self-accept immediately - give other folks a chance to absorb your challenge and propose an alternate solution.
This assumes the question wasn't a brain-dead one that can only have one answer, like "what is the function name for x?"