![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
郑*鱼
flesh man
展开
-
python解答leetcode best time to buy and sell stock
解答 leetcode (python)best time to buy and sell stockleetcode/problems/121.best-time-to-buy-and-sell-stock.mdSay you have an array for which the ith element is the price of a given stock on day i. If...原创 2019-07-02 14:01:43 · 239 阅读 · 0 评论 -
python leetcode/problems/62.unique-paths.md
问题一个机器人位于一个 m x n 网格的左上角 (起始点在下图中标记为“Start” )。机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角(在下图中标记为“Finish”)。问总共有多少条不同的路径?例如,上图是一个7 x 3 的网格。有多少可能的路径?说明:m 和 n 的值均不超过 100。示例 1:输入: m = 3, n = 2输出: 3解释:从左上角开始,总共有...原创 2019-07-12 20:31:37 · 111 阅读 · 0 评论 -
leetcode 0046.permutations (python)
Given a collection of distinct numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]class Solution(...原创 2019-07-11 10:33:44 · 138 阅读 · 0 评论