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

Function Search

Trees/BST.C:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54struct Node *Search(int key)
55{
56 struct Node *t = root;
57
58 while (t != NULL)
59 {
60 if (key == t->data)
61 return t;
62 else if (key < t->data)
63 t = t->lchild;
64 else
65 t = t->rchild;
66 }
67 return NULL;
68}
69
70struct Node *RInsert(struct Node *p, int key)
71{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected