leetcode—Best Time to Buy and Sell Stock IV
摘要:题目: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may co
阅读全文
posted @
2016-06-29 10:59
赵俊庭
阅读(204)
推荐(0)
算法入门2——开灯问题
摘要:题目描述: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle
阅读全文
posted @
2016-06-05 20:04
赵俊庭
阅读(302)
推荐(0)