摘要:1115 Counting Nodes in a BST (30分) A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left sub 阅读全文
posted @ 2020-02-17 15:44 musecho 阅读 (8) 评论 (0) 编辑
摘要:更新:1115 [1115 Counting Nodes in a BST:LIU] build函数内,为root声明变量地址 ,不需要 ,这样是重新声明另一个变量。 C++ //插入节点 void insert(node &root,int d) { if(root==NULL) {//若某个节点 阅读全文
posted @ 2020-02-17 15:41 musecho 阅读 (7) 评论 (0) 编辑