system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Why can you sit 2 hours trying to solve a programming/math problem, give up, go to bed & then when you wake up, solve the problem in 10 minutes?
gpt
When you keep trying to solve a problem for a long time you often get stuck in some dead-end area of thought which doesn’t lead to any solutions. After you’ve rested you often can take a different approach which leads to victory. And it might be fast, because really many such problems have rather simple solutions once you know them.