摘要: 题目描述: 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 trans 阅读全文
posted @ 2016-07-27 22:57 scottwang 阅读(835) 评论(2) 推荐(0) 编辑
摘要: 题目描述: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2]. Note: Each 阅读全文
posted @ 2016-07-27 00:32 scottwang 阅读(238) 评论(0) 推荐(0) 编辑