tree
二次元中毒者
众多IT民工中的一员。爱好动漫,电影。闲的时候喜欢喝喝咖啡,看看书,散散步。新的开始,开始学着热爱C#,热爱码工的生活~ Life Pattern:coding-> read paper->coding->read paper---->
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 对称树解法
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \3 4 4 3But the f原创 2014-10-20 07:44:54 · 624 阅读 · 0 评论 -
Leetcode 平衡树判别
判断一颗二叉树是否平衡。/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */public class Soluti原创 2014-10-20 17:42:18 · 432 阅读 · 0 评论 -
LeetCode 二叉树的最小深度
计算二叉树的最小深度。最小深度定义为从root原创 2014-10-20 19:13:13 · 5149 阅读 · 0 评论
分享