【题目】
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.
【分析】
无
【代码】
/*******************************...
分类:
其他好文 时间:
2015-01-06 11:59:33
阅读次数:
155
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/42417535
Given an integer n, return the number of trailing zeroes in n!.
Note: Your solution should be in logarithmic...
分类:
其他好文 时间:
2015-01-06 10:06:32
阅读次数:
122
题目描述:
The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. Please note that your returned answers (both index1 and...
分类:
其他好文 时间:
2015-01-06 00:54:53
阅读次数:
171
1 Given an array of integers, find two numbers such that they add up to a specific target number. 2 3 The function twoSum should return indices of t.....
分类:
其他好文 时间:
2015-01-06 00:42:58
阅读次数:
192
题目:(DP)Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return al...
分类:
其他好文 时间:
2015-01-06 00:41:27
阅读次数:
147
题目:
Given an array of integers, every element appears three times except for one. Find that single one.
Your algorithm should have a linear runtime complexity. Could you implement it without using e...
分类:
其他好文 时间:
2015-01-05 16:41:37
阅读次数:
178
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key if...
分类:
系统相关 时间:
2015-01-05 14:54:59
阅读次数:
219
题目:
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without us...
分类:
编程语言 时间:
2015-01-04 23:10:13
阅读次数:
286
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 nu...
分类:
其他好文 时间:
2015-01-04 22:49:26
阅读次数:
229
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...
分类:
其他好文 时间:
2015-01-04 21:29:46
阅读次数:
162