Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 735 Bytes

File metadata and controls

17 lines (11 loc) · 735 Bytes

Tutorial Week 14 - Tree

Please answer all questions and read carefully :octocat:

Instructions

This tutorial consists with 3 questions (Tree Traversal): Inorder, Postorder and Preorder Traversal ⭐

Figure: Tree

Exercise 1 - Inorder Tree Traversal

Based from the figure above, print out all the keys/elements in Inorder Tree Traversal (hint: left->root->right)

Exercise 2 - Postorder Tree Traversal

Based from the figure above, print out all the keys/elements in Postorder Tree Traversal (hint: left->right->root)

Exercise 3 - Preorder Tree Traversal

Based from the figure above, print out all the keys/elements in Preorder Tree Traversal (hint: root->left->right)