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-07-09 23:32:44
阅读次数:
276
1($20'$) 设 ${\bf A}$ 为秩为 $1$ 的 $n$ 阶方阵, ${\bf A}$ 的迹 $\tr({\bf A})=a\neq 0$. 试求出 ${\bf A}$ 的所有特征值 (写出重数).解答: 由 $\rank({\bf A})=1$ 知 ${\bf A}$ 的任意两行均线性...
分类:
其他好文 时间:
2014-07-08 00:50:44
阅读次数:
246
Setting up Wifi with the Command LineSIMON MONKThis tutorial works best if your router is broadcasting the SSID. Make sure you have "Broadcast SSID" s...
分类:
Web程序 时间:
2014-07-07 08:56:24
阅读次数:
288
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-07-07 08:19:36
阅读次数:
151
将Best Time to Buy and Sell Stock的如下思路用到此题目思路1:第i天买入,能赚到的最大利润是多少呢?就是i + 1 ~ n天中最大的股价减去第i天的。思路2:第i天买出,能赚到的最大利润是多少呢?就是第i天的价格减去0~ i-1天中最小的。和前两道题比起来的话,这道题最...
分类:
其他好文 时间:
2014-07-06 23:40:44
阅读次数:
284
Given a log of stock prices compute the maximum possible earning.
分类:
其他好文 时间:
2014-07-06 20:04:21
阅读次数:
259
4 Work Mistakes You Don't Realize You're Making你在工作中无意间会犯的四个错误When you’re the new girl at work, you do everything in your power to stay on your best b...
分类:
其他好文 时间:
2014-07-05 18:53:56
阅读次数:
204
题目
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...
分类:
其他好文 时间:
2014-07-03 17:51:01
阅读次数:
235
CD
You have a long drive by car ahead. You have a tape recorder, but unfortunately your best music is on CDs. You need to have it on tapes so the problem to solve is: you have a tape N min...
分类:
其他好文 时间:
2014-07-03 15:34:36
阅读次数:
176
/*
* 备忘录模式
*/
#include
//保存值
class mySavevalue
{
public:
mySavevalue(string user_name = "",
int life_value = 100,
int magic_point = 100,
int rank_values =...
分类:
其他好文 时间:
2014-07-01 08:49:27
阅读次数:
203