#include <stdio.h> #include <stdlib.h> // 定义二叉树节点结构 struct TreeNode { int val; struct TreeNode* left; struct TreeNode* right; }; // 插入函数 struct TreeNode* insert(struct TreeNode* node, int val) { if (node == NULL) { struct TreeNode* temp = (struct TreeNode*)mallo...