2016年9月14日

35. Search Insert Position

摘要: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or 阅读全文

posted @ 2016-09-14 16:06 三颗心 阅读(668) 评论(0) 推荐(0)

121. Best Time to Buy and Sell Stock

摘要: 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 transaction 阅读全文

posted @ 2016-09-14 12:36 三颗心 阅读(210) 评论(0) 推荐(0)

63. Unique Paths II

摘要: Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space 阅读全文

posted @ 2016-09-14 11:37 三颗心 阅读(177) 评论(0) 推荐(0)

导航