[LeetCode]Best Time to Buy and Sell Stock II...
分类:
其他好文 时间:
2014-07-16 17:32:35
阅读次数:
181
Is not 80 biplane was cheap ghd australia paypal ever issues the plane genuinely located Boeing with respect to simply being all of us business jet fo...
分类:
其他好文 时间:
2014-07-16 00:14:33
阅读次数:
288
题意:给定你二维范围,找这个范围里面的最大值解题思路:二维线段树有两种实现方式,一种是 树套树 ,另一种则是将二维平面分成4块的 完全四叉树我的代码:// File Name: 1823.cpp// Author: darkdream// Created Time: 2014年07月10日 星期四 ...
分类:
其他好文 时间:
2014-07-16 00:07:29
阅读次数:
418
1、将"(332、21)luck李。"中(332、21)抽取出来同时能够 将”(23)luck李。“中的(23)抽取出来pp = re.compile('(\(\d*(、\d*)?\))')mm = pp.match(line)print mm.groups()[0]2、
分类:
编程语言 时间:
2014-07-15 08:36:10
阅读次数:
293
It's like cheap ghd nz any type of those remodeling will show when sufferers are removed off their business opportunities as well as their loved ones ...
分类:
其他好文 时间:
2014-07-15 08:05:21
阅读次数:
300
ay 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 at...
分类:
其他好文 时间:
2014-07-13 23:22:16
阅读次数:
294
sql中有group buy 后如何获取总记录的条数,来生成分页当然一般情况下我是不推荐这样的分页,如果你真的需要应该是你表结构设计有问题1、适用于所有情况$db = new PDO(DSN...); $db->setAttribute(array(PDO::MYSQL_USE_BUFFERED_Q...
分类:
其他好文 时间:
2014-07-13 21:41:23
阅读次数:
271
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 at most two transactions.
Note:
You ma...
分类:
其他好文 时间:
2014-07-13 13:55:14
阅读次数:
305
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),...
分类:
其他好文 时间:
2014-07-12 17:34:34
阅读次数:
170
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 (ie, buy on...
分类:
其他好文 时间:
2014-07-12 16:31:50
阅读次数:
192