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

Function Height

Trees/BST.C:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87int Height(struct Node *p)
88{
89 int x, y;
90 if (p == NULL)
91 return 0;
92 x = Height(p->lchild);
93 y = Height(p->rchild);
94 return x > y ? x + 1 : y + 1;
95}
96
97struct Node *InPre(struct Node *p)
98{

Callers 1

DeleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected