码迷,mamicode.com
首页 >  
搜索关键字:time    ( 52982个结果
Best Time to Sell and Buy Stock
这道题想了很多,但是想多了。这个题思路很简单,如果当前值大于最小值,就计算差,和最大利润值比较。 1 class Solution { 2 public: 3 int maxProfit(vector &prices) { 4 if(prices.size()==0) 5 ...
分类:其他好文   时间:2015-02-04 21:34:21    阅读次数:120
hdu 2438 Turn the corner(三分)
Turn the corner                                                         Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)                                           ...
分类:其他好文   时间:2015-02-04 18:51:18    阅读次数:122
UVA - 11401 - Triangle Counting (递推!)
UVA - 11401 Triangle Counting Time Limit: 1000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu Submit Status Description Problem G Triangle Counting Input: Standa...
分类:其他好文   时间:2015-02-04 18:49:36    阅读次数:176
LeetCode—Best Time to Buy and Sell Stock
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),...
分类:其他好文   时间:2015-02-04 18:49:28    阅读次数:123
嵌入式开发之davinci--- 8148/8168/8127 中的alsa音频pcm g711 和aac 音频格式
(1)alsa pcm(2)g711(3)aac(4)--------------author:pkf-------------------time:2-4---------------------------qq:1327706646(1)alsa pcm(2)g711G.711 G.711 .....
分类:其他好文   时间:2015-02-04 18:14:38    阅读次数:180
hdu 3400 Line belt
Line belt                                                                        Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)                                ...
分类:其他好文   时间:2015-02-04 16:51:06    阅读次数:188
寒假集训.Intersection
Intersection Time Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %llu Submit Status Description  Intersection  You are to write a program that ha...
分类:其他好文   时间:2015-02-04 16:43:56    阅读次数:116
Unity之一天一个技术点(十五)
给unity3d的老版动画中,添加事件的方法(测试通过):   AnimationEvent event0 = new AnimationEvent(); event0.time =this.animation["run"].length * 0.2f; event0.functionName ="xxx"; event0.strin...
分类:编程语言   时间:2015-02-04 16:38:20    阅读次数:152
leetcode——First Missing Positive
题目: Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n) time and uses...
分类:其他好文   时间:2015-02-04 16:33:15    阅读次数:149
ps -aux
~]# ps auxUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDroot 1 0.0 0.2 2900 852 ? Ss 11:49 0:01 /sb...
分类:其他好文   时间:2015-02-04 16:23:07    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!