It can be done sometimes, I done it for my 4th year OS course. Pretty much a day of cramming, sleepless night + uppers + .. = A-. Trouble is I remembered or learned absolutely nothing from it. For the record I loved university, but that particular course was taught by a prof who had no business teaching anything to anyone(great researcher absolutely terrible teacher) so I could not bring myself to come to class