This week we learned how to implement binary tree and the difference between a normal tree and a binary tree. A binary tree contains can only have max two children for each root. It has methods contain, str, eq and repr, as well as functions evaluate, postorder_visit,
inorder_visit, visit_level, levelorder_visit, bst_contains and insert. One thing that bothers me a lot is that I can not understand the difference between those three visit algorithms, it seems to me that they are all the same.
没有评论:
发表评论