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

Function height

Trees/avltree.c:16–21  ·  view source on GitHub ↗

Calculate height

Source from the content-addressed store, hash-verified

14
15// Calculate height
16int height(struct Node *N)
17{
18 if (N == NULL)
19 return 0;
20 return N->height;
21}
22
23int max(int a, int b)
24{

Callers 5

rightRotateFunction · 0.70
leftRotateFunction · 0.70
getBalanceFunction · 0.70
insertNodeFunction · 0.70
deleteNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected