Questions: A. Given Tree FormA class that implements binary tree, you're required to update class to implement the follo
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Questions: A. Given Tree FormA class that implements binary tree, you're required to update class to implement the follo
Questions: A. Given Tree FormA class that implements binary tree, you're required to update class to implement the following methods: [3 Marks] (One mark for each point) 1. In order traversal method 2. Post order traversal method 3. Max method (to find the maximum value in the tree) B. Application: [2 Marks] a. Create a tree by the following values: 10, 20, 30, 11, 12, 13, 40, 22, 23, 24, 25 b. Traverse all elements in the tree created in a by calling the method that created in A-1 and print the result. (In Order). Results: ---InOrder Traversal:---- 10 11 12 13 20 22 23 24 25 30 40