https://oj.leetcode.com/problems/trapping-rain-water/Trapping Rain WaterGiven n non-negative integers representing an elevation map where the width of...
分类:
移动开发 时间:
2014-10-28 19:54:55
阅读次数:
213
Problem DescriptionProblems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In...
分类:
其他好文 时间:
2014-10-27 17:34:09
阅读次数:
198
转载原文:http://www.csdn.net/article/2013-08-28/2816731-absolute-beginners-guide-to-nodejsNode.js的教程并不缺乏,但有大部分教程针对已有Node.js基础的开发者。“我已下载了Node.js,可我如何开始呢?”以...
分类:
Web程序 时间:
2014-10-27 17:12:29
阅读次数:
222
BasicDebatingSkills- see http://www.actdu.org.au/archives/actein_site/basicskills.htmlDEBATING -A Brief Introduction for Beginners- seehttps://www.deb...
分类:
其他好文 时间:
2014-10-27 14:06:46
阅读次数:
146
计算几何: 堆几何模版就可以了。。。。
Description
Problem E
2D Geometry 110 in 1!
This is a collection of 110 (in binary) 2D geometry problems.
CircumscribedCircle x1 y1 x2 y2 x3 y3
Fi...
分类:
其他好文 时间:
2014-10-25 22:59:03
阅读次数:
246
http://acm.whu.edu.cn/land/problem/detail?problem_id=1047
Description
Recently, Flymouse reads a book about Algorithm and Data Structure. The book reads: there are two types of LCS Problems. One...
分类:
编程语言 时间:
2014-10-25 21:33:28
阅读次数:
291
https://oj.leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/允许重复,也就意味着会有a[l]==a[r],以及a[mid]==a[r]的情况出现。后者比较好办,从坐标图中看出直接r=mid即可。前者会有一个问题是当...
分类:
编程语言 时间:
2014-10-24 12:20:09
阅读次数:
197
1. Two Sum(https://oj.leetcode.com/problems/two-sum/)解题思路:解法一: 暴力,O(n2)时间复杂度,TLE解法二:利用hash, 记录下数组中每个值对应的下标,再遍历一遍数组,通过查看target-num[i]的值是否在map中来确定另一个数值。...
分类:
编程语言 时间:
2014-10-24 00:16:44
阅读次数:
226
原题地址:https://oj.leetcode.com/problems/find-minimum-in-rotated-sorted-array/解题思路:话说leetcode上面的二分查找题目真的不少啊。下图是这道题的数组的两种情况,分别去处理就可以了。class Solution: #...
分类:
编程语言 时间:
2014-10-23 16:10:21
阅读次数:
224
原题地址:https://oj.leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/解题思路:这道题和上一道题的区别是,数组中可能有相同的数。那么,分下列几种情况:代码:class Solution: # @param n...
分类:
编程语言 时间:
2014-10-23 16:07:04
阅读次数:
183