码迷,mamicode.com
首页 >  
搜索关键字:symmetric    ( 408个结果
Symmetric Tree
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class...
分类:其他好文   时间:2015-07-02 19:31:46    阅读次数:97
Symmetric Tree
1. Question判断一个二叉树是否是对称的。Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree i...
分类:其他好文   时间:2015-06-24 23:54:40    阅读次数:183
Leetcode--easy系列5
#83 Remove Duplicates from Sorted List Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3...
分类:其他好文   时间:2015-06-24 19:01:53    阅读次数:123
leetCode(15):Symmetric Tree
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 3 But the f...
分类:其他好文   时间:2015-06-21 14:37:26    阅读次数:145
红黑树
简介有一个平衡二叉树:红黑树(Red Black Tree),由红黑树Rudolf Bayer至1972明,当时被称为平衡二叉B树(symmetric binary B-trees),1978年被Leonidas J. Guibas和Robert Sedgewick改成一个比較摩登的名字:红黑树。红...
分类:其他好文   时间:2015-06-20 11:52:39    阅读次数:240
Symmetric Tree
Description:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: ...
分类:其他好文   时间:2015-06-19 18:09:13    阅读次数:81
leetcode 101 Symmetric Tree
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 / \ ...
分类:其他好文   时间:2015-06-19 10:12:00    阅读次数:128
iOS开发者证书-详解/生成/使用
本文假设你已经有一些基本的Xcode开发经验, 并注册了iOS开发者账号.相关基础加密算法现代密码学中, 主要有两种加密算法:对称密钥加密和公开密钥加密.对称密钥加密对称密钥加密(Symmetric-key algorithm)又称为对称加密, 私钥加密, 共享密钥加密.这类算法在加密和解密时使用相...
分类:移动开发   时间:2015-06-18 21:31:01    阅读次数:298
Leetcode[101]-Symmetric Tree
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 3 But the following is not...
分类:其他好文   时间:2015-06-12 10:13:12    阅读次数:166
Symmetric Tree
有个问题,就是不能和same tree一样光看root 做recursive而是必须比较左右节点,因为对称是指整个树否则就会出现 1 2 2 # 3 3public class Solution { public boolean isSymmetric(TreeNode root) { ...
分类:其他好文   时间:2015-06-10 06:31:42    阅读次数:104
408条   上一页 1 ... 24 25 26 27 28 ... 41 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!