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

Function inorder

Trees/Binary_tree_Array.c:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void inorder(int index)
59{
60 // checking for valid index and null node
61 if(index>0 && tree[index]!='\0')
62 {
63 inorder(get_left_child(index)); //visiting left subtree
64 printf(" %c ",tree[index]); //visiting root
65 inorder(get_right_child(index)); // visiting right subtree
66 }
67}
68
69int is_leaf(int index)
70{

Callers

nothing calls this directly

Calls 2

get_left_childFunction · 0.85
get_right_childFunction · 0.85

Tested by

no test coverage detected