MCPcopy Create free account
hub / github.com/anupam-kumar-krishnan/Competitive_Programming / BST

Class BST

All Data Structures/TREE/BST.cpp:14–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12};
13
14class BST
15{
16private:
17 Node *root;
18
19public:
20 BST() { root = nullptr; }
21 Node *getRoot() { return root; }
22 void iInsert(int key);
23 void Inorder(Node *p);
24 Node *iSearch(int key);
25 Node *rInsert(Node *p, int key);
26 Node *rSearch(Node *p, int key);
27 Node *Delete(Node *p, int key);
28 int Height(Node *p);
29 Node *InPre(Node *p);
30 Node *InSucc(Node *p);
31 void createFromPreorder(int pre[], int n);
32};
33
34void BST::iInsert(int key)
35{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected