题目链接:http://poj.org/problem?id=2828 题目大意: 插队买票,有 n 个人依次插队,一开始买票队列为空,每个插队的人有两个属性 (pos, val) ,pos 表示这个人插队插在了 pos 位置,val 代表这个人的 id,输出 n 个人插完队后形成的序列所对应的 i ...
分类:
其他好文 时间:
2019-04-30 23:31:09
阅读次数:
167
我们的目标是爬取下面这个个网址上的2010~2018年的数据 http://stockdata.stock.hexun.com/zrbg/Plate.aspx?date=2015-12-31 获取我们需要的表格中的某些列的数据? (这是我从我的微信公众号帮过来的文章) 第一步,我们首先用谷歌浏览器查 ...
分类:
编程语言 时间:
2019-04-27 21:08:43
阅读次数:
178
For sale online Truck Adblue Emulator For SCANIA See the price Where to buy? Truck Adblue Emulator For SCANIA is the best selling product in the marke ...
分类:
数据库 时间:
2019-04-26 00:45:56
阅读次数:
186
For sale online Truck Adblue Emulator For SCANIA See the price Where to buy? Truck Adblue Emulator For SCANIA is the best selling product in the marke ...
分类:
数据库 时间:
2019-04-26 00:10:35
阅读次数:
190
9. Bookshops in London 伦敦书店 (1) Londoner are greater readers.They buy vast numbers of newspapers and magazines and even of books—especially paperbacks ...
分类:
其他好文 时间:
2019-04-24 23:33:30
阅读次数:
342
背景: 假设有一个Stock类,代表一只股票的价格,且每个股票有std::string唯一标识符。Stock对象是个主动对象,能不断获取股票的最新价格。为节省系统资源,每个程序每只出现的股票只有一个Stock对象。如果多处用到一只股票,那么Stock对象要被共享,如果这只股票没有被用到,那么对应的S ...
分类:
其他好文 时间:
2019-04-23 17:28:54
阅读次数:
136
Array Easy + Medium 1. 121. Best Time to Buy and Sell Stock 一次买入一次卖出,求最大利润.. 维护最小值,用buy保存下标,同时维护当前遍历得到的最大利润。 2. Best Time to Buy and Sell Stock II 不限制 ...
分类:
其他好文 时间:
2019-04-19 16:03:30
阅读次数:
131
Deep Learning for Event-Driven Stock Prediction Reading time:2019/3/30-2019/4/12 Theme:Deep learning; CNN; NLP Abstract: We propose a deep learning me ...
分类:
其他好文 时间:
2019-04-12 20:45:16
阅读次数:
844
题意 Language:DefaultBuy Tickets Time Limit: 4000MSMemory Limit: 65536KTotal Submissions: 25813Accepted: 12368DescriptionRailway tickets were difficult ...
分类:
其他好文 时间:
2019-04-06 09:16:24
阅读次数:
117
题源:https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iv/ 本题代码: 整体思路: 要进行n次交易,至少需要2n天,如果k大于或等于数组长度的一半,那么这题就退化为买卖股票的最佳时机 II,采用贪心法来做(见Leet ...
分类:
其他好文 时间:
2019-04-05 19:50:50
阅读次数:
178