Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the ...
分类:
其他好文 时间:
2019-03-24 10:02:12
阅读次数:
119
[TOC] 题目描述: 给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。 示例 1: 输入: "abcabcbb" 输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。 示例 2: 输入: "bbbbb" 输出: 1 解释: 因为无重复字符的最长子串是 "b ...
分类:
其他好文 时间:
2019-03-18 11:50:10
阅读次数:
151
Description ’Why are you always repeating what I say?’ says Applese, a friend of Little Sub. ’Because it is the most important quality of mankind.’ sa ...
分类:
移动开发 时间:
2019-03-18 01:41:36
阅读次数:
164
Specific topics in Part 2 include: greedy algorithms (scheduling, minimum spanning trees, clustering, Huffman codes), dynamic programming (knapsack, s ...
分类:
其他好文 时间:
2019-03-15 09:15:23
阅读次数:
287
使用vector 在解决一些问题的时候确实非常高效。 可以不像Array 那样一个一个去查。 可以大幅度缩减代码实现的时间。 Given a string, find the length of the longest substring without repeating characters. ...
分类:
编程语言 时间:
2019-03-06 09:21:25
阅读次数:
280
题目如下: Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The a ...
分类:
其他好文 时间:
2019-03-06 09:20:37
阅读次数:
161
为什么es需要优化? 答: [root@master elasticsearch-2.4.0]# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) ...
分类:
其他好文 时间:
2019-02-28 15:10:20
阅读次数:
219
一、数组 8) 双指针 滑动窗口 例题: 3. Longest Substring Without Repeating Characters 描述:Given a string, find the length of the longest substring without repeating c ...
分类:
其他好文 时间:
2019-02-24 19:04:19
阅读次数:
137
题目: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letter ...
分类:
其他好文 时间:
2019-02-16 19:25:38
阅读次数:
173
The decimal expansion of the fraction 1/33 is 0.03, where the 03 is used to indicate that the cycle 03 repeats inde?nitely with no intervening digits. ...
分类:
其他好文 时间:
2019-02-16 09:27:03
阅读次数:
147