#include<bits/stdc++.h> using namespace std; typedef long long ll; //int INF=(1<<31)-1; //int mi=-(1<<31)+1; #define read(x) scanf("%d",&x); #define f ...
分类:
其他好文 时间:
2016-08-22 02:12:28
阅读次数:
288
在Linux这个一切皆文件的系统中怎么能快速和精确的查找到文件,是我们必不可少的技能。而文件查找的命令可以让我们在很短的时间内在文件系统中找到我们要查找的文件。这就是我们要掌握的,因此我来介绍一下文件查找的这两个命令locate和find。文件查找:在文件系统上查找符合条..
分类:
其他好文 时间:
2016-08-22 00:38:07
阅读次数:
164
问题描述: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which th ...
分类:
其他好文 时间:
2016-08-21 19:46:57
阅读次数:
104
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have ...
分类:
其他好文 时间:
2016-08-21 18:15:12
阅读次数:
139
1553: Good subsequence Description Give you a sequence of n numbers, and a number k you should find the max length of Good subsequence. Good subsequen ...
分类:
其他好文 时间:
2016-08-21 18:14:40
阅读次数:
136
小李子:用于演示作用的数据库表:customers 官方解读: “ 读取数据集其实就是获取数据表中的多行记录(以及关联数据),使用select方法 ” 最简单无脑的select查出来的数据如下: 官方解读:“ 读取数据是指读取数据表中的一行数据(或者关联数据),主要通过find方法完成 ”: 现在看 ...
分类:
Web程序 时间:
2016-08-21 16:52:35
阅读次数:
2044
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowes ...
分类:
其他好文 时间:
2016-08-21 16:46:53
阅读次数:
151
找礼物[find.pas/find.c/find.cpp] 【问题描述】 新年到了,突然间,就在那美丽的一霎那,你好友和你(K个人)的周围满是礼物,你发扬你帅气的风格,让你的好友先拿,但是每个人只能拿当前离自己最近的礼物[当然如果有并列的多个礼物离你的距离相等(精确到小数后四位,所有运算均为去尾), ...
分类:
其他好文 时间:
2016-08-21 15:15:30
阅读次数:
461
Given a binary tree, find the length of the longest consecutive sequence path. The path refers to any sequence of nodes from some starting node to any ...
分类:
其他好文 时间:
2016-08-21 15:10:35
阅读次数:
155
直接sudo apt-get install python-pypcap即可 How to install python-pypcap on Ubuntu 12.04 (Precise Pangolin) 按照编译源码的方法,出现couldn't find pcap build or install ...
分类:
系统相关 时间:
2016-08-21 11:00:29
阅读次数:
534