We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b0f2fe commit ffc7c87Copy full SHA for ffc7c87
data_structures/binary_search_tree.cpp
@@ -100,6 +100,7 @@ void BFT(node *n) {
100
101
/*
102
Prints the preorder traversal starting from the node n
103
+ Prints root - leftChild - rightChild
104
*/
105
void Pre(node *n) {
106
if (n != NULL) {
@@ -111,6 +112,7 @@ void Pre(node *n) {
111
112
113
114
Prints the inorder traversal starting from the node n
115
+ Prints leftChild - root - rightChild
116
117
void In(node *n) {
118
@@ -122,6 +124,7 @@ void In(node *n) {
122
124
123
125
126
Prints the postorder traversal starting from the node n
127
+ Prints left - rightChild - root
128
129
void Post(node *n) {
130
0 commit comments