Question: Create a node class / struct - Data field - 2 self referential pointers Create a BST class / struct - Node field Methods: Add
Create a node classstruct
Data field
self referential pointers
Create a BST classstruct
Node field
Methods:
Add data
Adds the data to the tree in sorted order.
Print
Prints all the nodes using inorder traversal
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
