1.Best Time to Buy and Sell Stock I 题目链接 题目要求: Say you have an array for which theithelement is the price of a given stock on dayi. If you were ...
分类:
其他好文 时间:
2015-06-11 19:12:11
阅读次数:
117
#include#define MAXN 1000#define M_100 100#define M_5 6#define inf 1000000000using namespace std;struct _code{ long num; long price; int plac...
分类:
其他好文 时间:
2015-06-09 15:46:25
阅读次数:
94
mysql> DELIMITER //mysql> CREATE PROCEDURE productpricing() -> BEGIN -> SELECT AVG(prod_price) AS priceaverage -> FROM products; -> END//Q...
分类:
数据库 时间:
2015-06-09 13:37:24
阅读次数:
224
这三个放在一起是有理由的,因为他们都是操作两个或多个结果集,并且这些结果集有如下限制:
所有查询中的列数和列的顺序必须相同.
数据类型必须兼容.
并且它们都是处理于多个结果集中有重复数据的问题
首先还是创建测试环境
use tempdb
create table tempTable1 (id int primary key identity, price int)
create ...
分类:
数据库 时间:
2015-06-08 17:20:55
阅读次数:
180
PSI中有好多个单价,到底是什么业务含义? 1、采购单价 t_pw_bill_detail表的goods_price 因为采购是企业需要花钱的地方,所以采购单价直接影响存货单价,即而影响存货成本。 2、库存单价,或者存货单价 t_invent...
分类:
其他好文 时间:
2015-06-08 10:05:01
阅读次数:
136
一周的学习,这周最大的收获是JS里json格式的运用和抽象化思想,例如:var book=[{id:1,bookname:"软件开发",writer:"Tom",type:"编程技术",time:"1999-2-30",price:50,picture:"a.jpg"}, {i...
分类:
Web程序 时间:
2015-06-07 18:44:20
阅读次数:
138
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...
分类:
编程语言 时间:
2015-06-06 22:05:00
阅读次数:
169
#!/usr/bin/python
import?urllib2
import?sys
def?stock_data(stock_id,?stock_num,?purchase_price):
????url?=?‘http://hq.sinajs.cn/list=%s%06d‘?%?((stock_id?==?1?or?stock_id?>?600...
分类:
编程语言 时间:
2015-06-05 18:00:57
阅读次数:
295
http://blog.sina.com.cn/s/blog_71715bf801017nyw.html方法一:-(NSString *)notRounding:(float)price afterPoint:(int)position{NSDecimalNumberHandler* roundin...
分类:
移动开发 时间:
2015-06-04 21:02:14
阅读次数:
178
一,C#对象初始化语法:1 Product p = new Product()2 {3 Name = "小黄人",4 Price = 34,5 Descri...