242. 有效的字母异位词 描述 给定两个字符串 s 和 t ,编写一个函数来判断 t 是否是 s 的字母异位词。 示例 示例 1: 输入: s = "anagram", t = "nagaram" 输出: true 示例 2: 输入: s = "rat", t = "car" 输出: false ...
分类:
其他好文 时间:
2019-09-02 14:02:30
阅读次数:
54
题目说明 本题目是2019年9月1日LeetCode周赛的最后一题 题目描述 With respect to a given puzzle string, a word is valid if both the following conditions are satisfied: word con ...
分类:
其他好文 时间:
2019-09-01 22:07:24
阅读次数:
97
SpringBoot @valid 参数校验 ~~~java 空检查 @Null 验证对象是否为null @NotNull 验证对象是否不为null, 无法查检长度为0的字符串 @NotBlank 检查约束字符串是不是Null还有被Trim的长度是否大于0,只对字符串,且会去掉前后空格. @NotE ...
分类:
编程语言 时间:
2019-09-01 16:45:00
阅读次数:
682
1 #define _for(i,a,b) for(int i = (a);i b;i --) 3 class Solution 4 { 5 public: 6 vector findNumOfValidWords(vector& words, vector& puzzles) 7 { 8 map ... ...
分类:
其他好文 时间:
2019-09-01 14:53:01
阅读次数:
117
/** * 缩略图上传 */ public static function addPic() { $inputData = request()->all(); $rules = [ 'main_img' => [ 'image','max:10240' ] ]; $validator = Valid ...
分类:
其他好文 时间:
2019-08-31 19:03:30
阅读次数:
91
Description: A boomerang is a set of 3 points that are all distinct and not in a straight line. Given a list of three points in the plane, return whet ...
分类:
其他好文 时间:
2019-08-29 13:26:50
阅读次数:
78
Description: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of th ...
分类:
其他好文 时间:
2019-08-28 18:23:42
阅读次数:
89
一:针对不同的文件类型 location ~* \.(gif|jpg|png|swf|flv)$ { valid_referers none blocked www.jzxue.com jzxue.com ; if ($invalid_referer) { rewrite ^/ http://www ...
分类:
其他好文 时间:
2019-08-27 17:22:57
阅读次数:
103
Change Assembly Version in a compiled .NET assembly You can use ILMerge: ILMerge.exe Foo.dll /ver:1.2.3.4 /out:Foo2.dll A valid reason to do this is t ...
分类:
Web程序 时间:
2019-08-26 18:09:38
阅读次数:
147
Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Example 2: Note:You may assume the string contains only ...
分类:
其他好文 时间:
2019-08-24 09:59:55
阅读次数:
90