算法与数据结构
苇草--May
既然选择了远方,便只顾风雨兼程。
展开
-
查找兄弟
递归算法要注意逻辑错误如:char Sibling(BiTree T,TElemType e){ if (!T) return 0; if(T->data==e) return 0; if(T->lchild->data==e) return T->rchild->data; else if(T->rchild->原创 2017-06-04 16:24:21 · 250 阅读 · 0 评论 -
leetcode在线编程---树(java)
题目描述: Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node./** * Definition for binary tree *原创 2017-12-23 21:46:23 · 251 阅读 · 0 评论