MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / GetNewNode

Function GetNewNode

CPP/Trees/BinarySearchTree.cpp:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10};
11
12BSTNode* GetNewNode(int data)
13{
14 BSTNode* newNode = new BSTNode();
15 newNode -> data = data;
16 newNode -> left = NULL;
17 newNode -> right = NULL;
18 return newNode;
19}
20
21BSTNode* Insert(BSTNode* root, int data) //BST** root
22{

Callers 1

InsertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected