编程之美
bluegreen315
这个作者很懒,什么都没留下…
展开
-
股票,最大收益
题目: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 transaction (ie, buy one and sell one share of the stock),原创 2014-08-13 21:58:45 · 705 阅读 · 0 评论 -
编程之美3.10 分层遍历二叉树
问题1: 给定一棵二叉树,要求分层遍历该二叉树,即从上到下原创 2014-08-13 15:10:03 · 886 阅读 · 0 评论 -
编程之美2.14 求数组的子数组之和的最大值
题目:如题 解法一:原创 2014-08-13 21:30:41 · 464 阅读 · 0 评论