1.题目描述 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). 判断输入的树杈是否是镜像结构 2.题目分析 判断给出的树杈每一级对应的左节点与右节点是否相同 3 ...
分类:
其他好文 时间:
2018-02-08 00:27:18
阅读次数:
191
RT 找工就业 Bessie is running out of money and is searching for jobs. Farmer John knows this and wants the cows to travel around so he has imposed a rule ...
分类:
其他好文 时间:
2018-02-07 12:10:37
阅读次数:
207
bz877426 NFS4-ACL limit to a small number(around 100) > WONTFIX 1. cat >> /etc/exports /export/nfs 10.xx.xx.xx/24(rw,no_root_sqush,fsid=0) > echo "/ex ...
分类:
其他好文 时间:
2018-02-07 12:03:27
阅读次数:
148
Fence Repair Time Limit: 2000MS Description Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and find ...
分类:
其他好文 时间:
2018-02-04 13:58:02
阅读次数:
175
实现原理 本质 如果你用过Spring AOP,那么理解注解事务就十分简单了。事务注解本质上实在事务方法加入一个Around切面,在方法开始前开始事务,在抛出异常后回滚事务。使用简单伪代码可以简单理解为 事务传播性 Spring transaction有各种事务传播性,归根到底就是当前是新开事务还是 ...
分类:
编程语言 时间:
2018-01-30 17:02:06
阅读次数:
286
在这里,@Around注解表明watchPerformance()方法会作为performance()切点的环绕通知。在这个通知中,观众在演出之前会将手机调至静音并就坐,演出结束后会鼓掌喝彩。像前面一样,如果演出失败的话,观众会要求退款。可以看到,这个通知所达到的效果与之前的前置通知和后置通知是一样 ...
分类:
编程语言 时间:
2018-01-19 14:00:10
阅读次数:
167
It’s 2013, and there’s no way around it: you need to learn how to use GitHub.2 Why? Because it’s a social network that has completely changed the way ...
分类:
其他好文 时间:
2018-01-10 23:46:49
阅读次数:
311
GammaRay is a tool to poke around in a Qt-application and also to manipulate the application to some extent. https://www.kdab.com/gammaray Introductio ...
分类:
移动开发 时间:
2018-01-05 01:23:31
阅读次数:
228
BuggyD loves to carry his favorite die around. Perhaps you wonder why it's his favorite? Well, his die is magical and can be transformed into an N-sid ...
分类:
其他好文 时间:
2017-12-15 15:08:26
阅读次数:
371
今天在项目中成功实现了spring aop 。 @Before @After @AfterReturning @Around @AfterThrowing 这五个是实现spring aop常用的五个注解 相关的注解还有@Aspect @Component @PointCut 我在实践中发现: 1.@ ...
分类:
编程语言 时间:
2017-12-14 23:53:43
阅读次数:
175