Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library functio ...
分类:
其他好文 时间:
2019-11-17 12:31:52
阅读次数:
68
nginx服务器图片防盗链的方法<pre> location ~* \.(gif|jpg|png|jpeg)$ { expires 30d; valid_referers *.shuchengxian.com www.shuchengxian.com; if ($invalid_referer) { ...
分类:
其他好文 时间:
2019-11-17 10:40:17
阅读次数:
77
当在controller 中使用@Valid+ BindResult 和在参数实体中使用@NotNull,@NotEmpty等注解进行参数验证, 最后通过接口调用却正常进入方法体内没有进行参数验证的情况, 原因在于 1:BindResult封装了参数验证抛出的异常,也就是说异常被抛出但异常被捕获到了 ...
分类:
其他好文 时间:
2019-11-15 12:07:56
阅读次数:
294
SpringMVC的数据校验 一、注解方式 二、示例 Spring MVC本身没有数据校验的功能,它使用Hibernate的校验框架来完成。 1.导入pom节点 <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-valid ...
分类:
编程语言 时间:
2019-11-14 10:07:05
阅读次数:
100
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: true Example ...
分类:
其他好文 时间:
2019-11-12 09:21:34
阅读次数:
80
```c /* Author: Zoro Date: 2019/11/10 Function: Valid Anagram Title: leetcode 242 anagram.c think: 桶排序思想 */ #include #include #include bool isAnagram(... ...
分类:
其他好文 时间:
2019-11-11 12:39:55
阅读次数:
99
题目描述 假设给定两个字符串 s 和 t, 让我们写出一个方法来判断这两个字符串是否是字母异位词? 字母异位词就是,两个字符串中含有字母的个数和数量都一样,比如: 解题思路 1) 可以初始化一个 hash map,键作为出现的字母,值作为对应字母出现的次数。 2)然后遍历字符串 s,将 map 中对 ...
分类:
其他好文 时间:
2019-11-10 17:32:21
阅读次数:
130
题目: 给定两个字符串 s 和 t ,编写一个函数来判断 t 是否是 s 的字母异位词。 示例 1: 输入: s = "anagram", t = "nagaram"输出: true示例 2: 输入: s = "rat", t = "car"输出: false说明:你可以假设字符串只包含小写字母。 ...
分类:
其他好文 时间:
2019-11-08 12:18:06
阅读次数:
68
转自https://blog.csdn.net/u012370185/article/details/95238828 通常用外部api进行卷积的时候,会面临mode选择。 这三种mode的不同点:对卷积核移动范围的不同限制。 设 image的大小是7x7(橙色部分),filter的大小是3x3(蓝 ...
分类:
其他好文 时间:
2019-11-06 13:21:25
阅读次数:
235
转自https://blog.csdn.net/qq_34599526/article/details/83755275 VALID:如果卷积核超出特征层,就不再就计算,即卷积核右边界不超出Feature。如下图,卷积核F移动2次,从左往右第3个长方形的右边界在W内部。 SAME:只要卷积核还覆盖着 ...
分类:
其他好文 时间:
2019-11-05 15:09:37
阅读次数:
191