Tree: Height of a Binary Tree

  • + 0 comments

    I just added this line

    if(root->left == NULL && root->right == NULL) {
                return 0;
    
        }