美文网首页
Leetcode每日一题(Unique Paths)

Leetcode每日一题(Unique Paths)

作者: j_ok_er | 来源:发表于2016-08-01 09:50 被阅读61次

    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 point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).

    How many possible unique paths are there?

    所以分析到现在发现竟然是一样的:

    实现方法:

    这是最简单的一种了,参考下面的链接可以得到计算组合数更好的方法了。

    http://my.oschina.net/baoer1024/blog/62826

    相关文章

      网友评论

          本文标题:Leetcode每日一题(Unique Paths)

          本文链接:https://www.haomeiwen.com/subject/loexsttx.html