Problem with that is, you won't know how to come up with the solution in the first place when you see a new problem, which is usually the hardest part. Not the implementation of an algorithm already given to you (whether in words or in code).
I disagree. When you're at the basics of programming, seeing some complete working code can give you the ideas and understanding needed to make your own code.
I learned C++ almost entirely by first watching complete code, read it, understand it, put it away, and then write my own.