Jump Game II Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represent...
分类:
其他好文 时间:
2014-12-06 22:42:02
阅读次数:
235
题目网址:https://oj.leetcode.com/problems/add-two-numbers/题目描述:You are given two linked lists representing two non-negative numbers. The digits are stored...
分类:
其他好文 时间:
2014-12-06 20:19:23
阅读次数:
196
Triangle Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, give...
分类:
其他好文 时间:
2014-12-06 06:33:39
阅读次数:
186
题目网址:https://oj.leetcode.com/problems/single-number/题目描述:Given an array of integers, every element appears twice except for one. Find that single one....
分类:
其他好文 时间:
2014-12-05 22:34:16
阅读次数:
248
自从会了spfa,妈妈再也不用担心我的最短路问题了!poj 3767 最短路变形 解题报告~~spfa你值得拥有!...
分类:
其他好文 时间:
2014-12-05 17:37:00
阅读次数:
149
【题目】
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 1->4->3->2->5->NULL.
Note:
Given m, n s...
分类:
其他好文 时间:
2014-12-05 17:31:22
阅读次数:
143
LeetCode Count and Say 解题报告
如何数(shu 三声) 数(shu 四声):1,11,21,1211,111221,312211,13112221,1113213211...
分类:
其他好文 时间:
2014-12-05 15:33:13
阅读次数:
121
Merge k Sorted ListsMerge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.Show Tags参考资料: http://blog.csdn....
分类:
其他好文 时间:
2014-12-05 12:13:13
阅读次数:
210
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5128解题报告:在一个平面上给出n个点的坐标,用这n个点作为矩形的四个顶点,作两个矩形,要求两个矩形不能相交,也不能有边和点相交,然后两个矩形的面积之和要最大,求最大的面积之和是多少?如果不存在输出imp...
分类:
其他好文 时间:
2014-12-04 22:54:06
阅读次数:
330