commons email 1.4.jar javax.mail 1.5.2.jar JDK1.7无法运行,报错为PKIX:unable to find valid certification path to requested target,更换1.8后正常运行。 更换后报错 java.lang. ...
分类:
其他好文 时间:
2018-11-15 15:31:08
阅读次数:
212
Given two strings s and t , write a function to determine if t is an anagram of s.Example 1:Input: s = "anagram", t = "nagaram"Output: trueExample 2:I... ...
分类:
其他好文 时间:
2018-11-13 14:28:07
阅读次数:
142
"原题链接" 匹配括号 思路: 用栈,遍历过程中,匹配的成对出栈;结束后,栈空则对,栈非空则错。 Runtime: 4 ms, faster than 99.94% of Java class Solution { public boolean isValid(String s) { Stack s ...
分类:
其他好文 时间:
2018-11-13 12:18:06
阅读次数:
127
Given s = "internationalization", abbr = "i12iz4n": Return true.abbr 里数字代表相应的字符数,问字符串是否相等虽然是一个easy 的题但却有两个坑:1. abbr 结尾的地方是数字 例如: s= "internationalizat... ...
分类:
其他好文 时间:
2018-11-12 14:58:26
阅读次数:
299
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc ...
分类:
其他好文 时间:
2018-11-12 13:13:31
阅读次数:
120
On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on sc ...
分类:
其他好文 时间:
2018-11-11 20:16:46
阅读次数:
219
Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if we tak ...
分类:
其他好文 时间:
2018-11-11 01:02:02
阅读次数:
198
1.rest风格 2.@Pathvariable注解 2.1配置正则实例 3.@valid与@Validated @valid与@Validated的区别,@Validated是spring中的,是在@valid基础上而来的,在@valid的基础上增加分组功能,这里就直接说@Validated,没有 ...
分类:
编程语言 时间:
2018-11-11 00:04:57
阅读次数:
159
The string APPAPT contains two PAT's as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed ...
分类:
其他好文 时间:
2018-11-10 23:57:21
阅读次数:
192
Similar problem: #20 Valid Parentheses -- easy -- it only requires you to return true/false. We can simply use a stack to count whether the number of ...
分类:
其他好文 时间:
2018-11-10 15:31:45
阅读次数:
120