leetcode 101 Symmetric Tree
解题思路:根节点进行左右子节点判断,子节点对其同级子节点进行子节点的左右判断,使用递归与迭代的思想即可实现。...
分类:
其他好文 时间:
2015-05-26 19:02:31
阅读次数:
105
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-05-22 01:54:09
阅读次数:
189
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 ...
分类:
其他好文 时间:
2015-05-17 18:48:13
阅读次数:
118
题目: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-05-15 10:22:50
阅读次数:
125
关于false sharing的文章,网上一大堆了,不过觉得都不太系统,那么下面着重系统说明一下。先看看外国佬下的定义:In symmetric multiprocessor (SMP) systems, each processor has a local cache. The memory sy...
分类:
其他好文 时间:
2015-05-14 23:49:06
阅读次数:
270
Title: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-05-12 15:34:17
阅读次数:
120
Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given "Is PAT&TAP symmetric?", the longest symmetric sub-string is "s PAT&TAP s", hence you must...
分类:
其他好文 时间:
2015-05-10 06:22:13
阅读次数:
218
题目描述:
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
...
分类:
其他好文 时间:
2015-05-05 08:58:49
阅读次数:
146
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...
分类:
其他好文 时间:
2015-05-02 11:06:18
阅读次数:
118
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-04-27 15:14:27
阅读次数:
101