"Five hours in the lab will save you a whole hour in the library."
I am confused on this, you mean "a whole day" or am I missing something here?
What I do to cover my this stupid problem is I work a lot. I always repeat myself and it is of course frustrating. (for example I studied Dynamic programming 3 times from scratch, solved 20-30 problems each time, but after 1-2 months I completely forgot how to solve.)