Skip to content

UMK-Data-Science/tree-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published