leetcode
lcytzk
这个作者很懒,什么都没留下…
展开
-
[LeetCode] [Python] [Math] 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原创 2014-10-27 21:18:07 · 381 阅读 · 0 评论 -
[LeetCode] [Python] [DP] Best Time to Buy and Sell Stock
题目: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie, buy one and sell one share of th原创 2014-10-27 20:52:10 · 517 阅读 · 0 评论 -
[LeetCode] [Python] [DP] Best Time to Buy and Sell Stock III
题目与一类似,唯一的不同ji原创 2014-10-29 22:32:51 · 448 阅读 · 0 评论