05 2015 档案

(DP)Best Time to Buy and Sell Stock
摘要:题目:Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction ... 阅读全文

posted @ 2015-05-15 17:20 银杉 阅读(258) 评论(0) 推荐(0)

(DP)House Robber
摘要:题目:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping... 阅读全文

posted @ 2015-05-07 13:39 银杉 阅读(173) 评论(0) 推荐(0)

导航