AC自动机基础题。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 #define MAXL 1000005 9 #define TRIEN 26 10...
分类:
其他好文 时间:
2014-07-07 17:12:08
阅读次数:
242
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorte...
分类:
其他好文 时间:
2014-07-07 16:53:17
阅读次数:
196
python基础31[常用模块介绍] python除了关键字(keywords)和内置的类型和函数(builtins),更多的功能是通过libraries(即modules)来提供的。常用的libraries(modules)如下:1)python运行时服务* copy: copy模块提供了对复合(...
分类:
编程语言 时间:
2014-07-07 14:44:07
阅读次数:
247
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed?
分类:
其他好文 时间:
2014-07-07 13:07:00
阅读次数:
153
进行抓取页面,我看了一下人家的教程,一般要用到htmlparser用来解析html得到一个网页的相关链接,用httpclient抓取网页数据,下面是一我写的spider类package com.openzone.search.spider;import java.io.BufferedReader;...
分类:
编程语言 时间:
2014-07-01 21:43:29
阅读次数:
261
在eclipse中搜索时,搜索完之后有时候会弹出错误对话框,虽然错误内容有时候不同,但是解决办法都一样。这个问题是由于eclipse中文件不同步引起的。在eclipse中,工程文件是由eclipse自动扫描添加的,如果在外部修改了工程目录中的文件但又关闭了自动刷新功能,则会引起文件不同步,从而搜索时...
分类:
系统相关 时间:
2014-07-01 20:38:43
阅读次数:
654
哈哈,虽然是一道字符串水题,可是拿到一个1A还是很开心的!题意就是给一些keywords(子串)和Excuse(母串),然后输出包含keywords最多的Excuse,如果相等的话,按任意顺序全部输出即可。解题时有几点需要注意:1、一个keyword可能在Excuse里重复多次。2、每个keywor...
分类:
其他好文 时间:
2014-07-01 19:13:41
阅读次数:
174
转自:http://blog.csdn.net/chen861201/article/details/7035021apt-cache search package 搜索包apt-cache show package 获取包的相关信息,如说明、大小、版本等sudo apt-get install p...
分类:
其他好文 时间:
2014-07-01 13:12:46
阅读次数:
258
https://oj.leetcode.com/problems/validate-binary-search-tree/1.中序遍历是否有序/** * Definition for binary tree * public class TreeNode { * int val; * ...
分类:
编程语言 时间:
2014-07-01 12:20:06
阅读次数:
173
0 0 0 0 1 0 0 0
1 0 0 0 0 0 0 0
0 0 0 1 0 1 F 0
0 1 0 1 0 0 0 0
0 0 0 1 0 0 0 0
0 S 0 1 0 0 1 0
0 0 0 0 0 0 1 0
0 0 0 0 0 0 1 0
namespace matrix
{...
分类:
其他好文 时间:
2014-07-01 07:14:32
阅读次数:
221