5. Fill the function to add a new node in the tree. (8points). Typedef int element; typedef struct TreeNode ( element key str 5. Fill the function to add a new node in the tree. (8points). Typedef int element; typedef struct TreeNode ( element key struct TreeNode “left, right ) TreeNode; TreeNode new node(int item) return temp; TreeNode insert_node(Tree Node node, int key) //Create new node with new_node function when tree is null if (node NULL) return new node(key); 1/Otherwise, insert nodes return node;



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *