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
Patrol RobotTime Limit:3000MSMemory Limit:Unknown64bit IO Format:%lld & %lluSubmitStatusDescriptionA robot has to patrol around a rectangular area whi...
分类:
其他好文 时间:
2015-05-21 06:31:26
阅读次数:
119
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
Crazy tea party
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 7164
Accepted: 4864
Description
n participants of > sit around the table. Each minute one p...
分类:
其他好文 时间:
2015-05-16 09:09:28
阅读次数:
126
第一种:注解配置AOPjava中注解配置AOP(使用AspectJ类库实现的),大致分为三步:1.使用注解@Aspect来定义一个切面,在切面中定义切入点(@Pointcut),通知类型(@Before,@AfterReturning,@After,@AfterThrowing,@Around).2.开发需要被拦截的类。3.将切面配置到xml中,当然,我们..
分类:
编程语言 时间:
2015-05-15 18:05:59
阅读次数:
159
第一种:注解配置AOP
java中注解配置AOP(使用
AspectJ 类库实现的),大致分为三步:
1. 使用注解@Aspect来定义一个切面,在切面中定义切入点(@Pointcut),通知类型(@Before, @AfterReturning,@After,@AfterThrowing,@Around).
2. 开发需要被拦截的类。
3. 将切面配置到xml中,当然,我们也...
分类:
编程语言 时间:
2015-05-15 17:55:46
阅读次数:
175
题目: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
三种基本类型的缓存:绕写式(write-around),直写式(write-through)和回写式(write-back)。绕写式(write-around)缓存意味着所有数据首先被写入到硬盘区,当它成为合格的后,再基于读操作将它复制(注意不是移动)到闪存区。这意味着数据总是驻留在硬盘层,通常由R...
分类:
其他好文 时间:
2015-05-13 21:34:45
阅读次数:
197
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
EightTime Limit:1000MSMemory Limit:65536KTotal Submissions:26261Accepted:11490Special JudgeDescriptionThe 15-puzzle has been around for over 100 years...
分类:
其他好文 时间:
2015-05-09 08:47:18
阅读次数:
141