摘要: 题目描述: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 transactio... 阅读全文
posted @ 2014-10-16 22:58 skycore 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).Find the minimum element.... 阅读全文
posted @ 2014-10-16 22:38 skycore 阅读(147) 评论(0) 推荐(0) 编辑