题意:
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 one and sell one share of the stock multiple ti...
分类:
其他好文 时间:
2014-11-27 20:36:25
阅读次数:
215
题意:
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), design an algorithm to find the maximum prof...
分类:
其他好文 时间:
2014-11-27 00:17:48
阅读次数:
227
今天在回答一个网友的问题时,学习了一下进度条的制作,其实也简单,是用jQuery的animate来实现的。 这是animate的的文档,进度条里主要用到了step和complete两个属性:http://jquery.bootcss.com/animate/ Document ...
分类:
其他好文 时间:
2014-11-25 00:17:37
阅读次数:
162
描述:Description简介:Introduction火力:Fire体力:Physical关卡:Level地图:Map金币:Gold钻石:Diamonds奖励:Reward金钱:Money经验:Experience随机:Random条件:Conditions完成:Complete等级:Rank开...
分类:
其他好文 时间:
2014-11-24 18:59:16
阅读次数:
193
在XP下安装vsphere client 5.5后,连接VCENTER 5.5或esxi5.5 出现错误如下:
vSphere Client could not connect to “FQDN or IP Address”
An unknown connection error occurred. (The Client could not send a complete request t...
分类:
其他好文 时间:
2014-11-24 15:25:16
阅读次数:
1030
1.tab功能脚本[root@localhostpython]#cattab.py#!/usr/bin/pythonimportsysimportreadlineimportrlcompleterimportos#tabcompletionreadline.parse_and_bind(‘tab:complete‘)#historyfilehistfile=os.path.join(os.environ[‘HOME‘],‘.pythonhistory‘)2.导入在脚本当前目录下,..
分类:
编程语言 时间:
2014-11-24 13:46:29
阅读次数:
179
作者:zhanhailiang 日期:2014-11-21
Sublime Text设置(perfernces > Settings - User)
{
// 使用tab来实现自动完成
"auto_complete_commit_on_tab": true,
// 使用颜色主题
"color_scheme": "Packages/Color Sche...
分类:
其他好文 时间:
2014-11-22 00:47:12
阅读次数:
261
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-21 20:23:44
阅读次数:
118
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
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