Given a string, find the longest substring without any repeating characters and return the length of it. The input string is guaranteed to be not null ...
分类:
其他好文 时间:
2020-02-20 22:14:59
阅读次数:
62
存储引擎 使用的存储引擎 myisam / innodb/ memory myisam 存储: 如果表对事务要求不高,同时是以查询和添加为主的,我们考虑使用myisam存储引擎. ,比如 bbs 中的 发帖表,回复表. INNODB 存储: 对事务要求高,保存的数据都是重要数据,我们建议使用INNO ...
分类:
数据库 时间:
2020-02-20 16:47:14
阅读次数:
93
最小窗口子串。题意是给两个字符串S和T,T比较短。请输出一个最小的S的子串,包含了T中出现的所有字母。例子, Example: Input: S = "ADOBECODEBANC", T = "ABC" Output: "BANC" 这个题因为有时间复杂度的要求所以只能用到一个叫做滑动窗口的思想。在 ...
1 """ 2 Given a string, find the length of the longest substring without repeating characters. 3 Example 1: 4 Input: "abcabcbb" 5 Output: 3 6 Explanat ...
分类:
其他好文 时间:
2020-02-19 21:02:41
阅读次数:
53
前台SQL注入 payload(username处存在延迟注入):admin' AND if(ascii(substring(user(),1,1))>104,benchmark(2000000,md5(0x72696e67)),1)%23 前台敏感信息泄露 payload: http://xxx. ...
分类:
其他好文 时间:
2020-02-19 05:34:51
阅读次数:
135
var fullTaskName = this.form.taskName; var index=fullTaskName.lastIndexOf("-"); var task = fullTaskName.substring(0,index); var address = fullTaskName ...
分类:
其他好文 时间:
2020-02-19 00:38:42
阅读次数:
81
常用JAVA API :String 、StringBuilder、StringBuffer的常用方法和区别 ...
分类:
编程语言 时间:
2020-02-18 11:29:25
阅读次数:
74
在JS中,with 语句的作用是将代码的作用域设置到一个特定的对象中。其语法如下:with (expression) statement; 定义 with 语句的目的主要是为了简化多次编写同一个对象的工作,如下面的代码: var qs = location.search.substring(1); ...
分类:
编程语言 时间:
2020-02-17 16:28:07
阅读次数:
428
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. Example: I ...
分类:
其他好文 时间:
2020-02-17 12:18:03
阅读次数:
62
给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。 示例 1: 输入: "abcabcbb"输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。示例 2: 输入: "bbbbb"输出: 1解释: 因为无重复字符的最长子串是 "b",所以其长度为 1。示例 3: ...
分类:
其他好文 时间:
2020-02-16 16:47:09
阅读次数:
71