码迷,mamicode.com
首页 >  
搜索关键字:buy and sell stock    ( 1705个结果
Best Time to Buy and Sell Stock
Dynamic ProgrammingSay 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 ...
分类:其他好文   时间:2014-11-21 18:21:20    阅读次数:180
【leetcode】Best Time to Buy and Sell 2(too easy)
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-11-20 16:56:50    阅读次数:236
LeetCode:Best Time to Buy and Sell Stock II
题目描述: 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 complete as many transactions as you like ...
分类:其他好文   时间:2014-11-19 22:18:52    阅读次数:225
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 ...
分类:其他好文   时间:2014-11-19 20:34:34    阅读次数:103
UML类图的简单梳理
依赖关系 Dependency Class Car{} Class Person{ int a; static int b public void buy(Car c){ int c; .... } } 一个类是另一个类的某个方法的参数,或局部变量,或静态方法调用等。 另外变量分两种:局部变量,成员变量。 在某个方法中定义的变量为局...
分类:其他好文   时间:2014-11-19 18:35:25    阅读次数:120
HDU 5073 Galaxy
Description Good news for us: to release the financial pressure, the government started selling galaxies and we can buy them from now on! The first one who bought a galaxy was Tianming Yun and he g...
分类:其他好文   时间:2014-11-19 11:11:04    阅读次数:134
HDU 5073 Galaxy
Description Good news for us: to release the financial pressure, the government started selling galaxies and we can buy them from now on! The first one who bought a galaxy was Tianming Yun and he g...
分类:其他好文   时间:2014-11-19 00:57:52    阅读次数:166
ACM学习历程—HDU1392 Surround the Trees(计算几何)
DescriptionThere are a lot of trees in an area. A peasant wants to buy a rope to surround all these trees. So at first he must know the minimal requir...
分类:其他好文   时间:2014-11-16 20:04:22    阅读次数:132
lua 函数回调技巧
技巧1:local a = {}; function b() print("Hello World") end a["sell"] = {callFunc =b} a["sell"].callFunc()技巧2:    使用lua 自带的 unpack :    解释:把一直数组(只有连续数字下标的 table)展开成一串返回值,但是对用字符串或别的东西做 key 的 table 无能为力。fu...
分类:其他好文   时间:2014-11-14 15:43:30    阅读次数:136
地区切换类似京东网站
var areaTabContainer = $("#JD-stock .tab li"); var provinceContainer = $("#stock_province_item"); var cityContainer = $("#stock_city_item"); var currentProvinceId; var isFirst = 0; //当前地域信息 ...
分类:Web程序   时间:2014-11-13 14:42:01    阅读次数:222
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!