Best Time to Buy and Sell Stock II问题:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find t...
分类:
其他好文 时间:
2015-03-04 10:59:41
阅读次数:
114
年后第一篇博文,和大家分享一下choose函数的妙用。首先大家看下图:A列是一些日期,我需要在B列和C列显示A列的日期是星期几,其实B列和c列只是中英文的问题。提取日期的星期代码我们需要用weekday(),即weekday(A1,2)返回的是星期的序列,其中参数2是一周从周一开始,如果是从..
分类:
其他好文 时间:
2015-03-03 19:00:10
阅读次数:
253
Other API Best Practices: API Management Rewriting History with Git Rebase .NET Announcing Microsoft.IO.RecycableMemoryStream Web How I Decide which W...
分类:
其他好文 时间:
2015-03-03 11:15:14
阅读次数:
116
题目: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 complet...
分类:
编程语言 时间:
2015-03-02 00:55:58
阅读次数:
237
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-03-01 13:13:19
阅读次数:
119
With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World Cup trophy in South Africa. Si...
分类:
其他好文 时间:
2015-02-28 16:31:22
阅读次数:
169
系统经sharding改造之后,原来单一的数据库会演变成多个数据库,如何确保多数据源同时操作的原子性和一致性是不得不考虑的一个问题。总体上看,目前对于一个分布式系统的事务处理有三种方式:分布式事务、基于Best Efforts 1PC模式的事务以及事务补偿机制。我们下面对这三种处理方式一一进行分析。...
分类:
数据库 时间:
2015-02-27 13:26:55
阅读次数:
139
Q) Why was the FXquantso unlucky with the ladies?A) Because he always kept his dates short.Q) Why do quants always have the best gardens?A) Because th...
分类:
其他好文 时间:
2015-02-26 22:56:52
阅读次数:
204
The 35 Kevin durant best kd relase in history and kd 7 bhm only $100It’s hard to ignore all the chatter going on regardingKevin Durant’sundecided alle...
分类:
其他好文 时间:
2015-02-26 16:36:58
阅读次数:
128
#include#includeusing namespace std;struct Student{ int mID; int grade[4]; //0对应平均A,1对应C,2对应M,3对应E}STU[2010];char course[4]={'A','C','M...
分类:
其他好文 时间:
2015-02-26 01:20:39
阅读次数:
133