Last
Wednesday we had our second term test of the year. For me the second term test
felt slightly easier than the first one. The test covered topics of binary
trees, binary tree nodes, linked lists, and linked lists node.
The
first question on the test was on the length of binary trees and the order of
the nodes visited. This was a fairly straightforward question, since it was
mostly based on basic knowledge of tree structures and the definitions. The
second question was to come up with a binary search tree function list_even_between.
The question is similar to a function we touched upon in the tutorials. The
solution involves making a left list, a middle list, and a right list, while
calling recursion on both the left and right side of the binary search tree. The
third question is a linkedlist function called absorb value, which deletes a
value and adds it to the value after it. This question is also similar to
another function in the tutorial. Luckily, I had some of the tutorial functions
recorded in my cheat sheet, which really helped me on this question.
Because
of the TA strike, we did not have a tutorial last week. This was a shame, since
this class’s tutorials really helped a lot.
No comments:
Post a Comment