These are all the Pset Solutions of Harvard's CS50 Course - Intro to Programming
Don't copy my solutions as this is against the Academic Honesty Policy of the course. Investing your time and energy into solving the problem sets yourself is in my opinion the only way to eventual mastery.