只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-04-21 00:58 asawang 阅读(4) 评论(0) 推荐(0)
摘要: 题目如下:Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.再简单不过的一题了,懒得写解释直接上代码了。/** * Definition for a poi... 阅读全文
posted @ 2015-04-17 20:43 asawang 阅读(110) 评论(0) 推荐(0)
摘要: 题目如下: A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any... 阅读全文
posted @ 2015-04-08 20:45 asawang 阅读(114) 评论(0) 推荐(0)
摘要: 题目如下:There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it costs... 阅读全文
posted @ 2015-03-16 17:03 asawang 阅读(154) 评论(0) 推荐(0)