Question: Consider the given definitions of a node Node and a singly linked list BSTree. struct Node { int data; Node* left = NULL; Node* right
Consider the given definitions of a node Node and a singly linked list BSTree. struct Node { int data; Node* left = NULL; Node* right = NULL; }; class BSTree { Node* root = NULL; }; Write a insert() method for the BSTree class using only single pointer to find the desired location.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
