摘要: """ 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 transac 阅读全文
posted @ 2020-02-04 22:07 yawenw 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint sto 阅读全文
posted @ 2020-02-04 22:05 yawenw 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). 3 Once you pay the cost, you can either climb one or tw 阅读全文
posted @ 2020-02-04 22:03 yawenw 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 There are a total of n courses you have to take, labeled from 0 to n-1. 3 Some courses may have prerequisites, for example to take course 0 yo 阅读全文
posted @ 2020-02-04 17:00 yawenw 阅读(114) 评论(0) 推荐(0) 编辑