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

Function main

CPP/Trees/TopView_of_tree.cpp:71–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71int main()
72{
73
74 Node *root = newNode(1);
75 root->left = newNode(2);
76 root->right = newNode(3);
77 root->left->right = newNode(4);
78 root->left->right->right = newNode(5);
79 root->left->right->right->right = newNode(6);
80 cout << "Following are nodes in top view of Binary "
81 "Tree\n";
82 topview(root);
83 return 0;
84}

Callers

nothing calls this directly

Calls 2

topviewFunction · 0.85
newNodeFunction · 0.70

Tested by

no test coverage detected