It is often said that the best way to get to the bottom of a hard problem is to sleep on it. But how accurate is this advice?