There's nothing about the question or answer that suggests that they're different people.
FWIW I've done the same, even more like that than the post here. (Not about Lego though!) I had a problem, was disappointed not to find the answer on StackOverflow so when I came to post the solution I put the question in the way I would have written it before I figured out the solution. Seemed more likely to be found by anyone with a similar problem.