Tuesday, 22 October 2013



Last week was stressful. I had had two midterms (and a quiz) on Wednesday, then an additional midterm on Thursday; then this week, I had two midterms on Monday, I’ll have a test tomorrow, and an assignment due for Friday. I don’t think I did well on the midterm for this class; I think I misinterpreted a bunch of different stuff, which is disappointing because I definitely don’t think I’m a bad programmer. 
 
The exercises for last week were pretty fun, though. I was stressing out for a bit on Friday because neither make_tree nor sum_to_the_deepest were working properly, but it turned out that I had had a few typos. I made the function name make_treelist instead of make_tree, for example. It really threw me off because make_treelist was working exactly as specified so I didn’t realize why it was failing the premarking. I thought, since I was still uncomfortable with recursion, that it had been my code that was the problem, but nope; I had just misread the function name. I made a silly error for sum_to_the_deepest, as well; when comparing the depths of the left side vs. the right side, I switched the numbers around (right = nested_depth(t[1]), left = nested_depth(t[2]) instead of t[2] and t[1], respectively). I’ve learnt my lesson: late night programming is a bad idea.

No comments:

Post a Comment