二叉树面试
weixin_41218106
这个作者很懒,什么都没留下…
展开
-
二叉排序树
```cpp //一年以前 不理解二叉树,写起来很费劲,现在不费吹灰之力 typedef struct BiTnode { int val; struct BiTnode*lchild,rchild; }BiTnode,*BiTree; BiTree res; &res; bool searchBS...原创 2019-11-28 16:43:50 · 73 阅读 · 0 评论 -
二叉树常见的面试题
typedef struct tree { struct tree*left, *right; int val; }tree; //方法2: bool isBalanceBinaryTree(tree*root, int*depth) { if (root == NULL) { *depth = 0; return true; } int left; int right...原创 2019-11-19 10:34:26 · 187 阅读 · 0 评论