Hey me too! It happen on more than one occasion so I know it can't be coincidental. Very often, I will get stuck in debugging a programming problem and after spending hours on it, I give up and take a nap. When I wake up either the next day or hours later, the solution presents itself after working on it for a couple of minutes. It is like a nap reboots our brains (there are lots of articles about sleep and synapses).