码迷,mamicode.com
首页 >  
搜索关键字:buy and sell stock    ( 1705个结果
ACM学习历程—HDU 5023 A Corrupt Mayor's Performance Art(广州赛区网赛)(线段树)
Problem DescriptionCorrupt governors always find ways to get dirty money. Paint something, then sell the worthless painting at a high price to someon....
分类:其他好文   时间:2014-10-09 22:48:08    阅读次数:269
Get average stock price every 10 minutes
Write a class that displays average of stock prices for a given stock symbol for the last 10 minutes. We have a service that sends stock updates about...
分类:其他好文   时间:2014-10-08 10:22:15    阅读次数:221
C++实现顺序栈的基本功能
栈是限定仅在表头进行插入和删除操作的线性表,有着先进后出的特点(FILO); 现在我来动手实现栈的基本本功能练练手; 定义栈的头文件如下: #ifndef CSTOCK_H_ #define CSTOCK_H_ const int STOCK_SIZE = 100;//定义栈的大小 typedef int elemType;//定义栈元素类型,目前仅用int来练手 class CStoc...
分类:编程语言   时间:2014-10-07 15:44:43    阅读次数:220
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-10-07 11:10:03    阅读次数:129
HDU 1133 Buy the Ticket 卡特兰数
设50元的人为+1 100元的人为-1 满足前任意k个人的和大于等于0 卡特兰数 C(n+m, m)-C(n+m, m+1)*n!*m! import java.math.*; import java.util.*; public class Main { /** * @param args */ public static void main(Str...
分类:其他好文   时间:2014-10-07 00:43:11    阅读次数:232
[leetcode]Best Time to Buy and Sell Stock III @ Python
原题地址:https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/题意:Say you have an array for which theithelement is the price of a given sto...
分类:编程语言   时间:2014-10-06 23:54:02    阅读次数:266
Leetcode: Best Time to Buy and Sell Stock III
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 complet...
分类:其他好文   时间:2014-10-06 14:52:50    阅读次数:220
POJ 2828 线段树单点更新 离线搞
Description Railway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue… The Lunar New Year was approaching, but unluckily the Little ...
分类:其他好文   时间:2014-10-05 01:33:37    阅读次数:349
Leetcode:best_time_to_buy_and_sell_stock_II题解
假设你有一个数组,它的第i个元素是一个股票在一天的价格。 设计一个算法,找出最大的利润。...
分类:其他好文   时间:2014-10-04 16:57:46    阅读次数:122
Best Time to Buy and Sell Stock III
题目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...
分类:其他好文   时间:2014-10-03 13:37:34    阅读次数:225
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!