Valid Palindrome II Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Example 2 ...
分类:
其他好文 时间:
2018-05-25 11:13:51
阅读次数:
188
二分法 Binary Search Given a sorted integer array - nums, and an integer - target, find the any/first/last position of target in nums. Return -1 if targe ...
分类:
其他好文 时间:
2018-05-25 01:37:00
阅读次数:
156
Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a ...
分类:
其他好文 时间:
2018-05-23 02:15:07
阅读次数:
191
1.比较 @Valid是使用hibernate validation的时候使用 @Validated 是只用spring Validator 校验机制使用\ 2.实现 其中,@valid,java的jsr303声明了这类接口,hibernate-validator对其进行了实现 3.依赖 在使用ma ...
分类:
编程语言 时间:
2018-05-22 14:55:34
阅读次数:
344
官方文档 print(…) print(value, …, sep=’ ‘, end=’\n’, file=sys.stdout, flush=False) Prints the values to a stream, or to sys.stdout by default. Optional ke ...
分类:
编程语言 时间:
2018-05-22 12:55:43
阅读次数:
500
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NUL... ...
分类:
其他好文 时间:
2018-05-21 10:28:17
阅读次数:
151
Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example:Given num = 16, return true. Given num = 5, return fa ...
分类:
其他好文 时间:
2018-05-17 11:51:36
阅读次数:
177
You are given several queries. Each query consists of three integers p, q and b. You need to answer whether the result of p/q in notation with base b ...
分类:
其他好文 时间:
2018-05-16 19:38:34
阅读次数:
189
1.System.IO.MemoryMappedFiles 内存映射文件类 内存映射文件将文件的内容映射到应用程序的逻辑地址空间。 内存映射文件使程序员得以处理极大的文件(这是因为可以并发管理内存),并且它们允许对文件进行完整的随机访问而不需要查找文件。 内存映射文件还可以在多个进程之间进行共享。 ...