码迷,mamicode.com
首页 >  
搜索关键字:same-tree    ( 180个结果
100. Same Tree(leetcode)
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a ...
分类:其他好文   时间:2017-08-02 17:40:32    阅读次数:150
[LeetCode] Same Tree
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a ...
分类:其他好文   时间:2017-07-16 22:34:02    阅读次数:105
[LeetCode] 100. Same Tree Java
题目: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identic ...
分类:编程语言   时间:2017-07-14 22:21:12    阅读次数:245
LeetCode 100. Same Tree (相同的树)
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a ...
分类:其他好文   时间:2017-07-01 22:35:51    阅读次数:204
★leetcode★ same-tree
题目要求: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally ident ...
分类:其他好文   时间:2017-06-25 12:44:48    阅读次数:131
<LeetCode OJ> 100. Same Tree
100. Same Tree Total Accepted: 100129 Total Submissions: 236623 Difficulty: Easy Given two binary trees, write a function to check if they are equal o ...
分类:其他好文   时间:2017-06-22 10:05:21    阅读次数:117
same-tree——比较两个二叉树是否相同
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a ...
分类:其他好文   时间:2017-06-18 23:33:14    阅读次数:187
100. Same Tree(LeetCode)
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a ...
分类:其他好文   时间:2017-05-05 10:41:01    阅读次数:142
【LeetCode】101. Symmetric Tree-对称树/镜像树
一、描述: 对称树/镜像树:关于轴对称,每个结点绕轴旋转180度后和原树相同 二、思路: 属于二叉树,原理同LeetCode 100.Same Tree,递归解决; 假设T1,T2是用一棵二叉树的两个引用: 返回true:T1、T2均为空或T1的左子树等于T2的右子树且T1的右子树等于T2的左子树; ...
分类:其他好文   时间:2017-03-23 03:18:04    阅读次数:135
【LeetCode】100. Same Tree-相同树
一、描述: 二、思路: 属于二叉树类型,使用递归解决; 返回false:一棵树为空,且另一棵树不为空; 返回true两种情况:1两棵树均为空;2两棵树均不为空,且对应位置的结点完全相同; 递归调用,两树均为空是递归结束条件。 三、代码: ...
分类:其他好文   时间:2017-03-23 02:02:12    阅读次数:118
180条   上一页 1 ... 3 4 5 6 7 ... 18 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!