给定一个字符串,找出其中不含有重复字符的 最长子串 的长度。 ...
分类:
其他好文 时间:
2020-04-24 21:51:16
阅读次数:
56
"【简单】1 两数之和 Two Sum" "【中等】2 两数相加 Add Two Num" "【中等】3 无重复字符的最长子串 Longest Substring Without Repeating Characters" "【困难】4 寻找两个有序数组的中位数 Median of Two Sort ...
分类:
其他好文 时间:
2020-04-15 15:15:11
阅读次数:
70
定义 trim 去除字符串里的空白符及其他指定字符 Strip whitespace (or other characters) from the beginning and end of a string 描述 参数 可指定任意字符,使用..可指定一个范围 默认去除下面五个字符 " " (ASCI ...
分类:
Web程序 时间:
2020-04-06 19:02:08
阅读次数:
93
多多填坑,多多记录! 在微信小程序里安装vant-weapp的时候,出现了如下“Sorry, name can only contain URL-friendly characters and name can no longer....” 这是因为在npm初始化的时候,会向我们询问项目名,如果我们 ...
分类:
Web程序 时间:
2020-03-29 10:58:01
阅读次数:
872
There is a frog staying to the left of the string s=s1s2…sns=s1s2…sn consisting of nn characters (to be more precise, the frog initially stays at the ...
分类:
其他好文 时间:
2020-03-29 01:06:51
阅读次数:
86
只谈思路,和两数之和差??不多。把chars存入一个哈希表,然后对于words中的每个word,判断其字符是不是都在表中。 值得一提的是某word中的某字母可能多次出现,所以要考虑到这点。由于思路局限性,我的实现把word的每个字母也存入哈希表, 所以Can Be Formed的条件是word中每个 ...
分类:
其他好文 时间:
2020-03-28 23:19:01
阅读次数:
80
Changes in MySQL 5.7.13 (2016-06-02, General Availability) Account Management Notes In MySQL 5.7.8, the maximum length of MySQL user names was increas ...
分类:
数据库 时间:
2020-03-27 21:40:56
阅读次数:
93
914. 翻转游戏 中文English You are playing the following Flip Game with your friend: Given a string that contains only two characters: + and -, you can flip ...
分类:
其他好文 时间:
2020-03-26 01:06:15
阅读次数:
79
3 Longest Substring Without Repeating Characters 问题描述 Given a string, find the length of the longest substring without repeating characters. Example 1 ...
分类:
其他好文 时间:
2020-03-22 19:48:22
阅读次数:
54