There's a big difference between learning to solve problems and learning to look up existing solutions.
When approaching a new problem, it's good to make a serious attempt at solving it yourself from scratch (reinventing the wheel if necessary) before looking up best practices.