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

Function newNode

Trees/BottomView.cpp:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11};
12
13Tree* newNode(int data){
14 Tree *new_node = new Tree();
15 new_node->data = data;
16 new_node->hd = 0;
17 new_node->left = NULL;
18 new_node->right = NULL;
19 return new_node;
20
21}
22
23void setHorizontalDistance(Tree* root, int hd){
24

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected