摘要: 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 transaction (ie... 阅读全文
posted @ 2015-03-05 15:25 mrpod2g 阅读(111) 评论(0) 推荐(0) 编辑
摘要: For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2]./** * Definition for binary tree * public class TreeNode { * int val;... 阅读全文
posted @ 2015-03-05 14:36 mrpod2g 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Given a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the largest formed num... 阅读全文
posted @ 2015-03-05 09:09 mrpod2g 阅读(114) 评论(0) 推荐(0) 编辑