Problem:
Give a series of IP segments, for example, [0.0.0.1-0.0.0.3], [123.234.232.21-123.245.21.1]...
Now there is a new IP, find which IP segment it's in ?
Solution:
First, we could map the end...
分类:
其他好文 时间:
2014-08-18 00:18:13
阅读次数:
309
error at ::0 can't find referenced pointcut pointCutName 错误解决方法...
分类:
其他好文 时间:
2014-08-17 22:49:52
阅读次数:
226
__FUNCTION__, __LINE__
今天无意之间看到一段代码,里面有这样一个片段:
if (!interface) {
err ("%s - error, can't find device for minor %d",
__FUNCTION__, subminor);
retval = -ENODEV;
goto exit;
}
这...
分类:
其他好文 时间:
2014-08-17 22:49:32
阅读次数:
285
Linux 命令大全 1、文件管理 cat chattr chgrp chmod chown cksum cmp diff diffstat file find git gitview indent cut ln less locate lsattr mattrib mc mdel mdir mktemp more mmove mread mren mtools mtool...
分类:
系统相关 时间:
2014-08-17 17:13:03
阅读次数:
541
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T....
分类:
其他好文 时间:
2014-08-17 17:03:22
阅读次数:
184
To find the most common words, we can apply the DSU pattern; most_common takes a histogram and returns a list of word-frequency tuples, sorted in reve...
分类:
其他好文 时间:
2014-08-17 17:00:32
阅读次数:
180
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-08-17 16:55:02
阅读次数:
202
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-08-17 16:44:42
阅读次数:
179
Given a 2D board and a word, find if the word exists in the grid....
分类:
其他好文 时间:
2014-08-17 15:36:02
阅读次数:
210
编写程序,求大于等于一个给定长度的单词有多少。我们还会修改输出,使程序只打印大于等于给定长度的单词。使用find_if实现的代码如下:#include#include#include#includeusing namespace std;void biggies(vector &words,vect...
分类:
其他好文 时间:
2014-08-17 15:29:42
阅读次数:
225