Personally, the most important class to me was Intro to AI at UMass Amherst. Not necessarily because of the things i learned it, but more because it was that class alone that finally sparked my urge to 'enjoy' programming, rather than treating it as a chore.