```java public int lengthOfLongestSubstring(String s) { int i = 0, j = 0, max = 0; Set set = new HashSet(); while(j ...
分类:
编程语言 时间:
2019-04-05 14:03:33
阅读次数:
134
F. Graph Without Long Directed Paths time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output F. ...
分类:
其他好文 时间:
2019-04-03 22:39:29
阅读次数:
154
Problem 5 Problem 5 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest po ...
分类:
其他好文 时间:
2019-04-02 17:06:58
阅读次数:
104
F. Graph Without Long Directed Paths time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output F. ...
分类:
其他好文 时间:
2019-04-01 18:52:38
阅读次数:
253
http://poj.org/problem?id=3461 Description The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He w ...
分类:
其他好文 时间:
2019-03-27 12:42:43
阅读次数:
107
Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer ...
分类:
其他好文 时间:
2019-03-27 12:29:56
阅读次数:
157
由于标题中的错误引发: Message: Tried to run command without establishing a connection 解释: 先说一下我的爬虫架构,用的是firefox+selenium,上面的那个错误是因为浏览器退出之后,爬虫还要浏览器去执行一些命令,所以才报上面 ...
分类:
Web程序 时间:
2019-03-26 15:15:18
阅读次数:
2707
Graph 拓扑排序(Topological Sort) 假设一个应用场景:你用 C 编写了一个爬虫工具,其中有很多自定义的库: 、`queue.h stack.c stack.h heap.c heap.h bfs.c bfs.h dfs.c dfs.h dijkstra.c dijkstra.h ...
分类:
编程语言 时间:
2019-03-26 01:38:03
阅读次数:
182
sa[i]表示排名为 i 的后缀的第一个字符在原串中的位置 height[i]表示排名为 i 和排名为 i+1的后缀的最长公共前缀的长度 这些题目我并不一定全是用SA做的,但是还是要标记一下的 K - Extend to Palindrome Your task is, given an integ ...
分类:
编程语言 时间:
2019-03-25 21:55:00
阅读次数:
174
==> nginx Docroot is: /usr/local/var/www The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that nginx can run without sudo. ...
分类:
系统相关 时间:
2019-03-25 16:09:20
阅读次数:
249