Write a function to find the depth of a binary tree
来源:互联网 发布:怎么检查网络是否联通3 编辑:程序博客网 时间:2024/04/29 19:44
struct Node {T data; Node * left, * right; }; int depth (Node * pNode){ return (pNode == NULL) ? 0 : 1 + max (depth (pNode->left), depth (pNode->right)); }
- Write a function to find the depth of a binary tree
- Write a function to find the depth of a binary tree
- Write a function to find the longest common common string amongst an array of strings.
- Write a function to find the longest common prefix string amongst an array of strings.
- 4、Write a function to find the longest common prefix string amongst an array of strings
- Minimum Depth of a Binary Tree
- C++: Find height of a Binary Tree
- Write one line C function to find whether a no is power of two
- Given a binary tree, find its maximum depth.
- java数据结构-二叉树-Compute the depth of a binary tree.
- The Solution to LeetCode 111 Minimum Depth of Binary Tree
- The diameter of a binary tree
- the longest distance of a binary tree
- The diameter of a binary tree
- Compute the height of a binary tree
- Write a C program to find the parity of an unsigned integer
- Find the nearest common ancestor of any two nodes in a binary search tree
- Find the common ancestor of two nodes in a binary tree
- 【转载】SVN常见问题及相关原因,供各位查阅
- UI设计参考
- Android Notifications通知
- COM接口定义和标识
- Windows Qt 编译
- Write a function to find the depth of a binary tree
- HDOJ 1042 N! (大数)
- 第六周任务4
- Java内存分布
- 第六周任务5
- MFC中,只有经过编译,生成才会生成文件夹(.dsw.h等)
- android布局属性详解
- 经典排序算法2(插入排序)
- android 安卓APP获取手机设备信息和手机号码的代码示例