Combination Sum IGiven a set of candidate
numbers (C) and a target number (T), find all unique combinations in C where the
candidate numbers sums to T...
分类:
其他好文 时间:
2014-05-19 16:41:14
阅读次数:
269
首先来澄清一下site数据与网站索引量的区别:
1.在搜索引擎中输入site指令后得到的是一个网站大致的收录量。 百度官方给出的说明是:site指令查询到的页面只是放出去的页面,也就是用户可以搜索到的页面。
2.而网站的索引量指的是被编入到索引库中的网页数量(更为精准的收录量)。百度官方给出的解释是:“站点内容页面需要经过搜索引擎的抓取和层层筛选(可以理解为过滤)后,方可在搜索结果中展现给用户...
分类:
其他好文 时间:
2014-05-18 18:41:25
阅读次数:
268
作为一个新人,怎样学习嵌入式Linux?被问过太多次,特写这篇文章来回答一下。
在学习嵌入式Linux之前,肯定要有C语言基础。汇编基础有没有无所谓(就那么几条汇编指令,用到了一看就会)。C语言要学到什么程度呢?越熟当然越好,不熟的话也要具备基本技能。比如写一个数组排序、输入数字求和什么的。学C语言唯一的方法是多写程序多练习,编译出错没关系,自己去解决;执行出错没关系,自己去分析。以前我...
分类:
系统相关 时间:
2014-05-18 14:41:33
阅读次数:
338
【题目】
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly one solution.
For example, given array S = {...
分类:
其他好文 时间:
2014-05-18 10:37:57
阅读次数:
269
【题目】
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.
Note:
Elements in a quadruplet (a,b,c,d) must be in non-descending ord...
分类:
其他好文 时间:
2014-05-18 08:46:04
阅读次数:
227
使用过 AngularJS 的朋友应该最感兴趣的是它的指令。现今市场上的前端框架也只有AngularJS 拥有自定义指令的功能,并且AngularJS 是目前唯一提供Web应用可复用能力的框架。
目前有很多JavaScript 产品提供插件给Web开发人员。例如, Bootstrap 就是当前比较流行的提供样式和JavaScript插件的前端开发工具包。但是开发人员在使用Booostrap中的插件时, 必须切换到JavaScript 模式来写 jQuery 代码来激活插件虽然jQuery 代码写起来十分简...
分类:
Web程序 时间:
2014-05-18 08:21:28
阅读次数:
503
#include
#include
#include //system(); 这个指令需要用到此头文件
#include //toupper要用到
void main()
{
char letter;
do{
printf("A Display directory listling\n");
printf("B Display disk information\n");
...
分类:
其他好文 时间:
2014-05-18 06:46:07
阅读次数:
292
公司的apc smart UPS安装有管理卡(似乎是AP-9631),服务器环境有FreeBSD、Windows Server、Linux(CentOS、Ubuntu)
实际使用中有如下问题需要注意:
1、一旦安装有管理卡,UPS上自带的串口是不能再使用的
2、因为是smart UPS,apcupsd在关闭服务器之后会调用重启ups指令,这就会有如下一些问题
a、如果apcups...
分类:
其他好文 时间:
2014-05-18 06:43:01
阅读次数:
277
【题目】
Write a function to find the longest common prefix string amongst an array of strings.
【题意】
求一组字符串的最长公共前缀
【思路】
使用归并思想求解
要求字符串[1,2,..,k,k+1,...n]的最大公共前缀,先分别求[1,2,...k]和[k+1,...,n]的公共前缀...
分类:
其他好文 时间:
2014-05-18 05:17:53
阅读次数:
232
【题目】
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note:
Elements in a triplet (a,b,c) must be in non-descending order. (ie, a ≤ b ≤ c)
The so...
分类:
其他好文 时间:
2014-05-18 03:15:50
阅读次数:
287