Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
int height(struct Node *N)
17
{
18
if (N == NULL)
19
return 0;
20
return N->height;
21
}
22
23
int max(int a, int b)
24
{
Callers
5
rightRotate
Function · 0.70
leftRotate
Function · 0.70
getBalance
Function · 0.70
insertNode
Function · 0.70
deleteNode
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected