#include "include/TreeNode.h" #include int minDepth(struct TreeNode *root) { if (!root) return 0; if (!root->left || !root->right) return minDepth(root->left) + minDepth(root->right) + 1; return fmin(minDepth(root->left), minDepth(root->right)) + 1; } int main() { return 0; }