2018年11月5日
摘要: 【题目】 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 transa 阅读全文
posted @ 2018-11-05 11:46 alau 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 【题目】 Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: 阅读全文
posted @ 2018-11-05 11:22 alau 阅读(146) 评论(0) 推荐(0) 编辑