摘要: (0,0)到(m-1,n-1),只能向下或向右。求走法的个数。 整个路径必定要m-1向下,n-1向右,即m-1+n-1个空位中选出m-1个进行向下,即Cm-1m+n-2,此法待实现。 1 class Solution { 2 public: 3 int uniquePaths(int m, int 阅读全文
posted @ 2016-02-14 00:13 co0oder 阅读(118) 评论(0) 推荐(0) 编辑