Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant...
分类:
其他好文 时间:
2015-03-04 21:08:58
阅读次数:
131
大意:给一个矩阵 有一个六秒之内会爆炸的炸弹 爆炸事件在数值为4的位置会重置为60: The area is a wall, Ignatius should not walk on it.1: The area contains nothing, Ignatius can walk on it.2....
分类:
其他好文 时间:
2015-03-04 20:57:53
阅读次数:
138
Problem Description
For the hope of a forever love, Steven is planning to send a ring to Jane with a romantic string engraved on. The string’s length should not exceed N. The careful Steven knows Jane...
分类:
其他好文 时间:
2015-03-04 16:59:08
阅读次数:
194
问题{:timestamp=>"2015-03-04T00:02:47.224000+0800", :message=>"Retrying webhdfs write for multiple times. Maybe you should increase retry_interval or re...
分类:
Web程序 时间:
2015-03-04 01:01:25
阅读次数:
550
Create a Linear Layout(创建一个线性布局)注释:android:orientation="vertical"水平线性布局,"horizontal"垂直水平线性 match_parent:This value declares that the view should expan...
分类:
其他好文 时间:
2015-03-03 20:11:56
阅读次数:
131
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 水题,注意 du...
分类:
其他好文 时间:
2015-03-03 18:25:00
阅读次数:
112
Point: not necessarily contigous max sub array, at least one element should be selected:def maxSubarrCont(arr, n): ret = arr[0] curr = arr[0] ...
分类:
其他好文 时间:
2015-03-03 16:34:35
阅读次数:
127
Adding the Action BarGET STARTEDDEPENDENCIES AND PREREQUISITESAndroid 2.1 or higherYOU SHOULD ALSO READAction BarImplementing Effective NavigationDESI...
分类:
移动开发 时间:
2015-03-03 11:12:59
阅读次数:
328
from 知乎1 日常跑步真的会损伤膝盖吗?答案是“不”!5 Things Runners Should Know About Knees①与不跑步的人相比,跑步者并非更易患关节类疾病:在一项进行了18年的追踪调查中,跑步者患有关节类疾病的比例是20%,而对于不跑步的人,这个比例是32%。(http...
分类:
其他好文 时间:
2015-03-03 09:50:57
阅读次数:
123
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 n...
分类:
其他好文 时间:
2015-03-02 16:24:23
阅读次数:
129