摘要: 一 [抄题]: If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), design an algorithm to find the 阅读全文
posted @ 2017-12-10 16:07 苗妙苗 阅读(217) 评论(0) 推荐(0) 编辑
摘要: [抄题]: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2,1,-3,4 阅读全文
posted @ 2017-12-10 08:59 苗妙苗 阅读(227) 评论(0) 推荐(0) 编辑