Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:
其他好文 时间:
2014-06-09 23:14:45
阅读次数:
264
POJ 2356 find multiple
题意:
输入一个正整数 N ,接着输入 N 和 正整数 nums[1], nums[2], ... ... , nums[N],
试问可否从这 N 个正整数中找出一组连续的数,它们的和能被 N 整除。
思路:
鸽巢原理,构造一个序列 sums[1] = nums[1], sums[2] = nums[1] + nums[2], ... ....
分类:
其他好文 时间:
2014-06-08 15:12:34
阅读次数:
213
前面的步骤按说明书上就没有问题,但在移植内核时,当进行到
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig
出现以下错误:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuco...
分类:
其他好文 时间:
2014-06-08 10:40:46
阅读次数:
184
题目
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 leaf node.
方法
使用DFS对树进行遍...
分类:
其他好文 时间:
2014-06-08 10:26:33
阅读次数:
207
如果你执行下以下命令基本上会在Oracle软件目录下会发现两个root.sh的脚本
[oracle@rh64 Templates]$ find /u01/ -name root.sh |xargs ls -ltr
-rwxrwx--- 1 oracle oinstall 10 May 14 02:37 /u01/app/db11g/product/11.2.0/dbhome_1/invent...
分类:
数据库 时间:
2014-06-08 09:50:59
阅读次数:
946
本人电脑是64位的,用的eclipse也是64位的,jdk也是64位。 前两天MyEclipse需要安装一个插件,需要32的jdk,于是修改系统的path为32的,包括JAVA_HOME和JRE_HOME。 今天再次使用eclipse时就出现了Failed to load the JNI shared library jvm.dll的错误。如图: 很是郁闷啊,网上一查,是64的eclip...
分类:
系统相关 时间:
2014-06-08 05:39:10
阅读次数:
384
对Microsoft Azure的CloudTable进行操作,有很多种操作失败的可能,比如网络连接异常,比如短时间内发送的请求数太多。很多时候我们在失败之后过一段时间再重试,就能操作成功。但是有些失败不是简单重试就解决的。本文讲述的在修改操作时候发生的Precondition Failed错误就是一个例子。...
分类:
其他好文 时间:
2014-06-08 04:54:48
阅读次数:
305
题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the length...
分类:
其他好文 时间:
2014-06-08 03:06:52
阅读次数:
221
Problem Description
A hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary.
You are to find all the hat’s words in a dictionary.
In...
分类:
其他好文 时间:
2014-06-08 03:02:14
阅读次数:
323
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:
其他好文 时间:
2014-06-08 02:12:04
阅读次数:
216