Best Time to Buy and Sell Stock IIQuestion SolutionSay you have an array for which the ith element is the price of a given stock on day i.Design an al...
分类:
其他好文 时间:
2015-01-03 19:45:09
阅读次数:
140
Best Time to Buy and Sell Stock IIIQuestion SolutionSay you have an array for which the ith element is the price of a given stock on day i.Design an a...
分类:
其他好文 时间:
2015-01-03 19:43:30
阅读次数:
171
Best Time to Buy and Sell StockSay you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to compl...
分类:
其他好文 时间:
2015-01-03 19:43:30
阅读次数:
205
本函数是实现从控制台输入一行字符串。其中参数prompt是输入字符串的提示字符串。 例子:>>> s = input('#')#this is the best one>>> s'this is the best one'>>> s = input('#')#中国深圳是一个高科技城市>>> s'中国深圳是一个高科技城市'>>> 蔡军生 QQ:9073204 深圳...
分类:
编程语言 时间:
2015-01-03 10:43:28
阅读次数:
307
You are given a binary array with N elements: d[0], d[1], ... d[N - 1]. You can perform AT MOST one move on the array: choose any two integers [L, R],...
分类:
其他好文 时间:
2015-01-03 07:05:32
阅读次数:
298
微软近期Open的职位:Experience CJK Team – we are a group of talented engineers focusing on building the best search experience for East Asia markets like Chin...
分类:
其他好文 时间:
2015-01-03 00:53:01
阅读次数:
162
Choose the best route
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 7671 Accepted Submission(s): 2524
Problem Description
One ...
分类:
编程语言 时间:
2015-01-02 09:49:19
阅读次数:
170
题目大意:两个选手做题速度一样,第一个喜欢每A分钟将当前题目提交,第二个喜欢每
B分钟将当前题目提交。问:有T分钟,谁做的比较多。
思路:直接比较谁剩的多就可以了,水的不能再水了。。。...
分类:
其他好文 时间:
2015-01-01 00:17:05
阅读次数:
262
Algorithm: Scan through the array, keep finding 1. prices[i] with the condition: prices[i] prices[i+1], or at the end of an ascending trend, trea...
分类:
其他好文 时间:
2014-12-31 06:16:24
阅读次数:
159
LaTeX用的熟练以后十分方便,并且其实常用的命令也并不算多。不过每次使用LaTeX写论文时候总是会有一两个命令想不起来,结果不得不每次都在Google里翻江倒海。于是今天就把常用的命令备份在这里,希望以后不用每次都重新搜索…
另外有几年没发文了,借机表存在。
{a \brack b}
{a \choose a_1,a_2}
or...
分类:
其他好文 时间:
2014-12-30 23:38:23
阅读次数:
405