Height - Leaves Others
Height - Leaves Others
the binary tree, count the number of leaves, search for a key in the
binary tree.
#include <stdio.h>
#include <stdlib.h>
// Example usage
int main() {
// Create a simple binary tree
Node* root = createNode(20);
root->left = createNode(10);
root->right = createNode(30);
root->left->left = createNode(5);
root->left->right = createNode(15);
root->right->left = createNode(25);
root->right->right = createNode(35);
return 0;
}