Sleep on it.
Your brain is able to solve complex problems when at rest. The next time you feel stuck, without a solution to a problem, see what fresh solutions you generate by the next morning, or even just take a nap! Aim for 8 hours of sleep each night to allow your brain to rest and consolidate information.