Finally done with the term test, and it is not difficult since it's quite similar to the tutorial problems.
In-order, pre-order and post-order confused me a lot. and the best way to understand it is to do some exercise.I wrote down 3 different cases. did it by myself, and asked my friends for help. And finally I got it!!! Luckily, it's in the test.
I realized the TREE is not that difficult as what i felt before. The thing I felt difficult right now is the linked list. What I got was way less than what we would be tested in a test.
Here is an extremely simple way to think about tree traversals. Look at the code for tree traversals that were provided in our lab; it shows left, node, right, or node, left, right, or something along those lines. You just have to remember those patterns and apply them.
ReplyDelete