While we sleep, especially during the deep stages, the brain processes and consolidates memories from the day. This is why a good night's sleep is essential for learning and retaining information.
Finding a structure for problem-solving that works for you can be a big asset in how you approach challenges. The first step is, without fail, identifying the problem and what - if anything - you can do about it.