题目Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adja...
分类:
其他好文 时间:
2014-06-27 17:25:52
阅读次数:
225
第一个:type--查询一个命令的类型 -查询一个命令为内部或者外部命令的命令; -linux的众多命令中,有内部命令和外部命令,这时可以用type命令来查询一个命令到底是属于内部命令还是属于外部命令; -内部命令和外部命令的区分方法:在系统中有存储位置的为外部命令,没有存储位置的为内部命令,因为内...
分类:
系统相关 时间:
2014-06-26 17:50:23
阅读次数:
292
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:
其他好文 时间:
2014-06-26 15:50:35
阅读次数:
176
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ...
分类:
其他好文 时间:
2014-06-26 15:45:49
阅读次数:
163
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.时间复杂度O(n^3),最大全1子矩阵,利用直方图求解,可以参考对...
分类:
其他好文 时间:
2014-06-26 15:08:46
阅读次数:
164
http://www.cnblogs.com/hicjiajia/archive/2011/01/20/1940154.htmlLinux下Fork与Exec使用一、引言 对于没有接触过Unix/Linux操作系统的人来说,fork是最难理解的概念之一:它执行一次却返回两个值。fork函数是Uni....
分类:
系统相关 时间:
2014-06-26 11:10:53
阅读次数:
307
自己学习《APUE》时写的linux下一些命令(大概40个左右)实现,仅当学习使用,这些命令包括cat cp echo head ls paste rmdir tail umask who chattr cut expand join mkdir pwd sed tee uniq chgrp date find last mkfifo reboot sort wc chmod df ln mv rename split touch which chown du grep lsattr od rm tac t...
分类:
编程语言 时间:
2014-06-26 10:51:39
阅读次数:
423
getResult:function(data){
data=data.replace(/"/g,"'");
var xml;
//解决办法
if( typeof data == "string" ){
xml = new ActiveXObject("Microsoft.XMLDOM");...
分类:
Web程序 时间:
2014-06-26 10:42:33
阅读次数:
267
【题目】
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
【题意】
给定一个整数数组,其中除了一个数以外,其他数都是成对出现的,...
分类:
其他好文 时间:
2014-06-26 10:13:27
阅读次数:
254
Given s1, s2,
s3, find whether s3 is formed by the interleaving of s1 and
s2.
For example,
Given:
s1 = "aabcc",
s2 = "dbbca",
When s3 = "aadbbcbcac", return true.
When ...
分类:
其他好文 时间:
2014-06-26 10:10:19
阅读次数:
214