Tuesday, March 29, 2016
Week #9
During week 9 we've talk about mutating a tree, that is, insert and delete a node from a tree. On a first sight I knew delete will be much more complicated than insert because if we have a very large and complicated tree, then deleting a node will mean that we need to consider many cases or ifs. The algorithm given by the professor proved my thought. However, I did find that writing out algorithm for a complicated method/function does help much than just thinking about it in the head. Maybe in the future when I encounter such task I can try first write down the algorithm instead of immediately start coding.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment