
LeetCode/Dynamic Programming
白发书生
这个作者很懒,什么都没留下…
展开
-
LeetCode/Dynamic Programming/Unique Paths
问题描述A robot is located at the top-left corner of a m x n grid (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原创 2015-11-05 14:22:13 · 397 阅读 · 0 评论 -
LeetCode /Dynamic Programming/Climbing Stairs
问题描述You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?思路分析很明显这道题目适合使用DP来进行求解:那么我们根据前面原创 2015-11-05 13:26:42 · 563 阅读 · 0 评论