摘要: Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i... 阅读全文
posted @ 2015-09-14 10:47 cis2000 阅读(143) 评论(0) 推荐(0)
摘要: class Solution {public: /** * @param n, m: positive integer (1 <= n ,m <= 100) * @return an integer */ int uniquePaths(int m, int n)... 阅读全文
posted @ 2015-09-13 21:52 cis2000 阅读(167) 评论(0) 推荐(0)
摘要: 给定二维平面上n个点,找出位于同一条直线上的最大的点的个数。/*** Definition for a point.* struct Point {* int x;* int y;* Point() : x(0), y(0) {}* Point(int a, int b) : x(a), y(b) ... 阅读全文
posted @ 2015-09-12 13:39 cis2000 阅读(145) 评论(0) 推荐(0)
摘要: 博客开通,特此留念! 阅读全文
posted @ 2015-08-15 08:21 cis2000 阅读(83) 评论(0) 推荐(0)