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
无重复字符的最长字串 leetcode地址:https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/ 题目描述: 给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。 示例: 输入: ...
分类:
其他好文 时间:
2019-11-10 15:37:29
阅读次数:
76
在处理中文数据,经常加入下面的代码: 设置python默认字节流编/解码器按照utf8解码方式,把字节流编/解码为unicode; 具体来说,所起到的作用,可以用下面两个错误来解释: UnicodeEncodeError: 'ascii' codec can't encode characters ...
分类:
编程语言 时间:
2019-11-09 21:38:36
阅读次数:
126
344. Reverse String Easy Easy Easy Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocat ...
分类:
其他好文 时间:
2019-11-09 10:12:29
阅读次数:
111
如果收到的HTTP请求参数(URL中的GET请求)中有一个字符串,是中文,比如“10%是黄段子”,服务器段使用URLDecoder.decode就会出现此异常。URL只能使用英文字母、阿拉伯数字和某些标点符号,不能使用其他文字和符号。如果内容中存在中文,必须要进行编解码。“10%是黄段子”转码过后是 ...
分类:
编程语言 时间:
2019-11-08 12:00:00
阅读次数:
112
1.Given a Huffman tree for N (≥2) characters, all with different weights. The weight of any non leaf node must be no less than the weight of any node ...
分类:
编程语言 时间:
2019-11-07 15:06:52
阅读次数:
143
转自https://blog.csdn.net/u012370185/article/details/95238828 通常用外部api进行卷积的时候,会面临mode选择。 这三种mode的不同点:对卷积核移动范围的不同限制。 设 image的大小是7x7(橙色部分),filter的大小是3x3(蓝 ...
分类:
其他好文 时间:
2019-11-06 13:21:25
阅读次数:
235
场景:在没有通过npm init初始化目录的情况下,直接通过cnpm命令安装模块,在卸载模块时报错 报错:name cannot start with an underscore; name can only contain URL-friendly characters 原因分析:通过cnpm命令 ...
分类:
其他好文 时间:
2019-11-06 01:11:29
阅读次数:
265
转自https://blog.csdn.net/qq_34599526/article/details/83755275 VALID:如果卷积核超出特征层,就不再就计算,即卷积核右边界不超出Feature。如下图,卷积核F移动2次,从左往右第3个长方形的右边界在W内部。 SAME:只要卷积核还覆盖着 ...
分类:
其他好文 时间:
2019-11-05 15:09:37
阅读次数:
191