Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:
其他好文 时间:
2014-11-25 14:21:59
阅读次数:
183
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:
其他好文 时间:
2014-11-25 14:14:58
阅读次数:
149
题目描述:
Given a binary tree, flatten it to a linked list in-place.
For example,
Given
1
/ 2 5
/ \ 3 4 6
The flattened tree should look like...
分类:
其他好文 时间:
2014-11-25 12:49:09
阅读次数:
188
这个非常简单的题目,题目如下: 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...
分类:
其他好文 时间:
2014-11-25 00:02:41
阅读次数:
211
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, where...
分类:
其他好文 时间:
2014-11-24 15:28:13
阅读次数:
136
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.
#include
#include
typedef struct ListNode {
...
分类:
其他好文 时间:
2014-11-24 15:24:26
阅读次数:
183
http://www.csdn.net/article/2014-11-20/2822750-5-JDK-Tools-Every-Java-Developer-Should-Know?reload=1
分类:
编程语言 时间:
2014-11-24 14:56:50
阅读次数:
164
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:
其他好文 时间:
2014-11-24 13:30:40
阅读次数:
166
Master节点Log篇 1.?? WARN org.apache.hadoop.hdfs.server.common.Util: Path /usr/mywind/name should be specified as a URI in configuration files. Please update hdfs configuration. 问题定位:hdfs-si...
分类:
其他好文 时间:
2014-11-24 12:07:12
阅读次数:
230
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. Y...
分类:
编程语言 时间:
2014-11-24 10:10:53
阅读次数:
155