Single Number IIGiven an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a lin...
分类:
其他好文 时间:
2014-11-25 16:19:11
阅读次数:
142
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5, and A is now [1,1,2,...
分类:
其他好文 时间:
2014-11-25 14:35:41
阅读次数:
150
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