题目: Say you have an array for which the ith element
is the price of a given stock on day i. Design an algorithm to find the maximum
profit. You may co...
分类:
其他好文 时间:
2014-05-28 22:37:18
阅读次数:
327
只需以下两行命令:$ cd
android-sdk/platform-tools/systrace$ python systrace.py --time=10 -o
mynewtrace.html sched gfx view wm--time=10 -----------------trace运行...
分类:
其他好文 时间:
2014-05-28 22:26:08
阅读次数:
1421
参考链接:VC++中CTime类Format参数详解CTime/COleDateTime::Format方法的使用http://stat.ethz.ch/R-manual/R-devel/library/base/html/strptime.htmlhttp://www.geezer.org/sw/...
分类:
编程语言 时间:
2014-05-28 13:47:28
阅读次数:
433
题目链接题意: find the maximum positive difference
between the price on the ith day and the jth day附上代码: 1 class Solution { 2
public: 3 int maxProfit(ve...
分类:
其他好文 时间:
2014-05-28 03:49:45
阅读次数:
307
原题地址:https://oj.leetcode.com/problems/climbing-stairs/题意:You
are climbing a stair case. It takesnsteps to reach to the top.Each time you can
either cl...
分类:
编程语言 时间:
2014-05-28 03:27:49
阅读次数:
267
一个系列三道题,我都不会做,google之答案。过了两道,第三道看不懂,放置,稍后继续。一、Best
Time to Buy and Sell Stock
I题目:一个数组表示一支股票的价格变换。要求只买卖一次,获得最大收益。思路:一开始我认为是寻找最大、最小值,但由于最大值不一定总是出现在最小值的...
分类:
其他好文 时间:
2014-05-28 01:21:52
阅读次数:
262
题目: 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 transac...
分类:
其他好文 时间:
2014-05-28 00:55:20
阅读次数:
288
题目: Say you have an array for which the ith element
is the price of a given stock on day i. Design an algorithm to find the maximum
profit. You may co...
分类:
其他好文 时间:
2014-05-28 00:53:26
阅读次数:
338
http://acm.hdu.edu.cn/showproblem.php?pid=1565
方格取数(1)Time Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K
(Java/Others) Total Submissi....
分类:
其他好文 时间:
2014-05-28 00:31:16
阅读次数:
248
You could use:Calendar c
=Calendar.getInstance();int seconds = c.get(Calendar.SECOND);There are plenty of
constants in Calendar for everything you nee...
分类:
移动开发 时间:
2014-05-27 17:13:56
阅读次数:
512