这次我觉得我的智商太低,想了很久才写出来。题目是让求镜像二叉树判断,题目如下: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, th...
分类:
其他好文 时间:
2014-11-18 13:15:28
阅读次数:
181
LeetCode 算法孽我千百遍,我带算法如初恋...
分类:
其他好文 时间:
2014-11-17 17:52:06
阅读次数:
128
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 / \ ...
分类:
其他好文 时间:
2014-11-17 10:34:42
阅读次数:
168
自反性(reflexive):对于任何非null的引用X,x.equals(x)必须返回ture 对称性(symmetric):对于任何非null的引用x和y,当且仅当x.equals(y)返回为ture时,y.equals(x)必须返回为true 传递性(transitive):...
分类:
其他好文 时间:
2014-11-15 14:18:39
阅读次数:
223
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 / \ ...
分类:
其他好文 时间:
2014-11-13 22:22:11
阅读次数:
221
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 / \ ...
分类:
其他好文 时间:
2014-11-13 22:20:24
阅读次数:
224
从系统架构来看,目前的商用服务器大体可以分为三类,即对称多处理器结构 (SMP : Symmetric Multi-Processor) ,非一致存储访问结构 (NUMA : Non-Uniform Memory Access) ,以及海量并行处理结构 (MPP : Massive Parallel...
分类:
其他好文 时间:
2014-11-12 19:45:42
阅读次数:
303
给一个二叉树,判断这个树是不是镜像的(对称的)。...
分类:
其他好文 时间:
2014-11-09 19:35:05
阅读次数:
193
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 / \ ...
分类:
其他好文 时间:
2014-11-09 06:18:31
阅读次数:
179
#include #include using namespace std;char line[1001];char line2[2003];int syslen(char str[], int start) { int len = 1; int p = start - 1; in...
分类:
其他好文 时间:
2014-11-07 00:52:32
阅读次数:
145