随笔分类 -  算法入门

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) 推荐(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) 推荐(0)
算法入门1——韩信点兵
只有注册用户登录后才能阅读该文。
posted @ 2016-06-05 19:53 赵俊庭 阅读(5) 评论(0) 推荐(0)