![]() |
| Visual representation of a Tree object. (Writing Recursion Exercise) |
The tutorial for this week is very hard, probably the hardest tutorial I have had so far, and this is the first time where I have not able to finish all method example on lab handout. Similar to lecture this week's lab is about writing recursion for class Tree, and it is very tricky. Methods that we were asked to write like return all the value in Tree object where it has at least one children are extremely complicated and requires a lot of thinking. The quiz in the end was also very tricky, where we were asked to write a function that returns the maximum depth in the Tree object, and I had little confidence on the correctness of my answer.

No comments:
Post a Comment