一次总结两道题,两道题目都比较基础Description:Write a function to
find the longest common prefix string amongst an array of strings.分析:
这道题目最重要的知道什么叫prefix前缀, 否则一不小心就做...
分类:
其他好文 时间:
2014-06-09 21:08:16
阅读次数:
224
(一)安装nginx前的准备
安装nginx需要安装openssl和pcre,具体安装步骤请参考nginx安装的相关博文(二)nginx和nginx-gridfs 联合编译安装
nginx-gridfs 源码下载(包含Mongo-C-Driver可用的下载链接):地址 http://files.cn...
分类:
其他好文 时间:
2014-06-09 20:17:39
阅读次数:
364
Given an infinite number of quarters (25 cents),
dimes (10 cents), nickels (5 cents) and pennies (1 cent), find how many ways to
represent n cents.思路:...
分类:
其他好文 时间:
2014-06-09 20:04:56
阅读次数:
238
原题地址:https://oj.leetcode.com/problems/combination-sum/题意:Given
a set of candidate numbers (C) and a target number (T), find all unique
combinations in...
分类:
编程语言 时间:
2014-06-09 17:50:09
阅读次数:
333
You are given a string, S, and a list of words,
L, that are all of the same length. Find all starting indices of substring(s) in
S that is a concatena...
分类:
其他好文 时间:
2014-06-09 17:49:34
阅读次数:
240
原题地址:https://oj.leetcode.com/problems/first-missing-positive/题意:Given
an unsorted integer array, find the first missing positive integer.For
example,G...
分类:
编程语言 时间:
2014-06-09 17:44:43
阅读次数:
980
原题地址:https://oj.leetcode.com/problems/combination-sum-ii/题意:Given
a collection of candidate numbers (C) and a target number (T), find all unique
combi...
分类:
编程语言 时间:
2014-06-09 17:41:58
阅读次数:
320
javax.servlet.ServletException:
org.springframework.transaction.CannotCreateTransactionException: Could not open
Hibernate Session for transaction; n....
分类:
系统相关 时间:
2014-06-09 15:53:41
阅读次数:
432
一.通过文件名查找法:举例说明,假设你忘记了httpd.conf这个文件在系统的哪个目录
下,甚至在系统的某个地方也不知道,则这是可以使用如下命令: find / -name httpd.conf
这个命令语法看起来很容易就明白了,就是直接在find后面写上 -name,表明要求系统按照文件...
分类:
系统相关 时间:
2014-06-09 14:41:26
阅读次数:
304
今天开始刷leetcode上的题,争取校招前刷过一遍,从AC率最高的题目开始刷,不废话了,看题题目:Single
NumberGiven an array of integers, every element appearstwiceexcept for one. Find
that single ...
分类:
其他好文 时间:
2014-06-09 12:57:45
阅读次数:
260