In college they did the same thing, so I pirated the book the teacher was using for the class so I could get the answers to the questions we were being assigned. It helped me learn the material with multiple examples and solutions. I think it should be required to give the solutions to homework; especially, with classes like differential equations and vector calculus.