码迷,mamicode.com
首页 >  
搜索关键字:best    ( 2208个结果
HDU 2680 Choose the best route
Choose the best routeTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:268064-bit integer IO format:%I64d Java cla...
分类:其他好文   时间:2014-08-29 17:30:58    阅读次数:223
OpenGL中Buffer的传输和更新
Graphics API的特点就是从名字上很难看出背后做了什么,所以会用和做到Best Pratice中间要经历很多曲折。昨天看了一下OpenGL中传输和更新Buffer的方法,发现了一些之前没有留意到的东西。在创建了Buffer对象之后,可以通过glBufferData/glBufferSubDa...
分类:其他好文   时间:2014-08-29 01:23:46    阅读次数:507
UVA - 1500 Alice and Bob (dp+博弈)
Description Alice and Bob are very smart guys and they like to play all kinds of games in their spare time. the most amazing thing is that they always find the best strategy, and that's why they fe...
分类:其他好文   时间:2014-08-28 16:55:48    阅读次数:303
27. Best Time to Buy and Sell Stock && Best Time to Buy and Sell Stock II && Best Time to Buy and Sell Stock III
注意: 限制条件: 先买后卖(不同天)。 思想: 买了后,1. 若以后价格不变,不买不卖。 1. 更价格低,重新买。2. 价格升高,假定抛售,更新一下利润值。 思想:求出所有非递减序列两端绝对值之和。我贴在 leedcode 的代码和证明: 思想:动态规划。 记录下从各位置(含)开始之前...
分类:其他好文   时间:2014-08-27 16:00:18    阅读次数:213
[leecode]Best Time to Buy and Sell Stock III
Best Time to Buy and Sell Stock IIISay you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the...
分类:其他好文   时间:2014-08-26 19:13:26    阅读次数:268
URAL 1005 Stone Pile
看数据规模,也懒得想了,裸DFS得了 1 import java.util.Scanner; 2 3 public class P1005 4 { 5 private static int best = Integer.MAX_VALUE; 6 7 //a[] 原始值 8 ...
分类:其他好文   时间:2014-08-26 01:41:55    阅读次数:362
LeetCode: Best Time to Buy and Sell Stock
LeetCode: Best Time to Buy and Sell StockSay you have an array for which the ith element is the price of a given stock on day i.If you were only permi...
分类:其他好文   时间:2014-08-25 22:35:34    阅读次数:261
best coder 第六场
传说当中的best coder让我做确实感觉怪怪的,第一道wa了两发,你就知道我当时的 窘境了,哎,不提了。       就说第二题吧,我一开始是这样想的,从1到k-2全都赋值为各自的序列数,即1,2,3... 直到k-2,     然后算出前k-1项的和为beg,     前k-2项的和为beg2;     从beg开始,直到n循环,找到那个能完全开方的数 i,用n-i就是第k个数,i-...
分类:其他好文   时间:2014-08-25 17:06:14    阅读次数:125
Best Time to Buy and Sell Stock系列
Best Time to Buy and Sell StockSay you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to compl...
分类:其他好文   时间:2014-08-25 16:52:04    阅读次数:238
五条垂暮之年才明白的道理
5 life lessons you will learn the hard way五条垂暮之年才明白的道理Life is not easy when you are pursuing something worthwhile and ready to learn from the best exp...
分类:其他好文   时间:2014-08-25 11:31:04    阅读次数:275
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!