Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet ...
分类:
其他好文 时间:
2018-12-28 10:47:32
阅读次数:
141
题意 "题目链接" 分析 题意容易转化成求循环之后不包含 $s$ 的串的个数。 首先建立 AC 自动机。考虑一个暴力的做法:枚举长度为 $n$ 的字符串 $t$ 最终(后缀) 和 $s$ 的匹配长度是多少 ($i$)。 这样在开始的时候,我们再记录一维从 $t$ 的第 $i+1$ 个位置开始匹配且没 ...
分类:
其他好文 时间:
2018-12-26 16:58:18
阅读次数:
175
安装了PyCharm,写代码过程中总是看到有波浪线,百度了下找到了这篇文章。 原文链接https://blog.csdn.net/Jason_Lewis/article/details/75386598 最近刚刚接触Python,为了养成好习惯,尽量保证自己写的代码符合PEP8代码规范,下面是过程中 ...
分类:
编程语言 时间:
2018-12-22 20:50:30
阅读次数:
811
A Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has ...
分类:
其他好文 时间:
2018-12-22 11:40:54
阅读次数:
197
[TOC] 1. 关于LoadTimeWeaving 1.1 LTW与不同的切面织入时机 AOP——面向切面编程,通过为目标类织入切面的方式,实现对目标类功能的增强。按切面被织如到目标类中的时间划分,主要有以下几种: 1.运行期织入 这是最常见的,比如在运行期通过为目标类生成动态代理的方式实现AOP ...
分类:
编程语言 时间:
2018-12-20 19:03:02
阅读次数:
191
以上就是各个注解的含义和作用,重点的两个注解就是?@Pointcut 和 @Around 注解,@Pointcut用来指定切面规则,决定哪些地方使用这个切面;@Around 会实际的去调用目标方法,这样就可以在目标方法的调用前后做一些处理,例如事物、权限、日志等等
分类:
编程语言 时间:
2018-12-17 14:26:25
阅读次数:
221
It is hard to explain css selector specificty, to easy way to understand it is by playing around with it. To remember some rules can be helpful: inlin ...
分类:
Web程序 时间:
2018-12-11 11:23:55
阅读次数:
235
JBehave and Cucumber are completely different frameworks, although meant for the same purpose: acceptance tests. They are based around stories (JBehav ...
分类:
其他好文 时间:
2018-12-05 22:26:26
阅读次数:
224
1常用容器继承关系图先上一张网上的继承关系图个人觉得有些地方不是很准确,比如Iterator不是容器,只是一个操作遍历集合的方法接口,所以不应该放在里面。并且Map不应该继承自Collection。所以自己整理了一个常用继承关系图如下如上图所示,接下去会自顶向下解释重要的接口和实现类。2Collection和Map在Java容器中一共定义了2种集合,顶层接口分别是Collection和Map。但是
分类:
编程语言 时间:
2018-12-04 19:03:59
阅读次数:
193
红色表示重点词汇 蓝色表示句子主干 带着问题听讲解 Q1: 文章总结了哪些自杀率下降的原因? Q2: 名词 means 在文中作单数还是复数? Q3: 词组 a suicide postponed 如何理解? Why suicide is falling around the world At a ...
分类:
其他好文 时间:
2018-12-04 11:37:03
阅读次数:
319