Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Binary Tree/BinaryTreeTraversal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ void inorder(struct node *root) {
inorder(root->right);
}
}

int minNode(struct node *root){
struct node *temp=root;
while(temp->left!=NULL)
temp=temp->left;
return temp->data;
}
struct node* insertNode(struct node* node, int val) {
if (node == NULL) return createNode(val);
if (val < node->data)
Expand Down