【称号】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 comple...
分类:
其他好文 时间:
2015-07-17 09:37:45
阅读次数:
115
昨天系统出现了一个比较奇怪的BUG,表单提交后,数据没有全部执行。查看tomcat日志发现有以下警告:18:52:23,058WARNHttpMethodBase:682-Goingtobufferresponsebodyoflargeorunknownsize.UsinggetResponseBodyAsStreaminsteadisrecommended.18:52:31,290WARNHttpMethodBase:682..
分类:
其他好文 时间:
2015-07-16 22:36:38
阅读次数:
199
网上很多同行应该都遇到过这个问题,百度一搜 千篇一律的处理办法,就是加大进程数。但是我这边情况不一样,因为我的Oracle 11g是早上刚装的,跟本没人用,我用PLSQL链接照样说不能链接。我就在想,到底哪里出了问题,很郁闷。最后我就想,是不是跟服务启动的数量有关系?如下图:结果就是服务一停掉,马上...
分类:
数据库 时间:
2015-07-16 19:18:51
阅读次数:
210
Description A numeric sequence of ai is ordered if a1 #include #include using namespace std;int main(){ int n,i,j,a[1005],d[1005]; while(scanf("...
分类:
其他好文 时间:
2015-07-16 19:05:49
阅读次数:
104
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.
3
7 4
2 4 6
8 5 9 3
That is, 3 + 7 + 4 + 9 = 23.
Find th...
分类:
其他好文 时间:
2015-07-16 09:52:17
阅读次数:
155
题目:By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.
3
7 4
2 4 6
8 5 9 3
That is, 3 + 7 + 4 + 9 = 23.
Find...
分类:
其他好文 时间:
2015-07-16 09:47:47
阅读次数:
157
Palindrome subsequence
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65535 K (Java/Others)
Total Submission(s): 2610 Accepted Submission(s): 1050
Problem Description
In mat...
分类:
其他好文 时间:
2015-07-16 00:50:13
阅读次数:
195
题目:124 Binary Tree Maximum Path Sum这道题就是分别算出左子树和右子树的可能最大和,然后对Path的值进行更新即可class Solution: def __init__(self): self.ans = -100000 def maxPa...
分类:
其他好文 时间:
2015-07-15 14:40:29
阅读次数:
96
DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence....
分类:
其他好文 时间:
2015-07-15 13:00:13
阅读次数:
101
在TCP/IP分层中,数据链路层用MTU(Maximum Transmission Unit,最大传输单元)来限制所能传输的数据包大小,MTU是指一次传送的数据最大长度,不包括数据链路层数据帧的帧头,如以太网的MTU为1500字节,实际上数据帧的最大长度为1512字节,其中以太网数据帧的帧头为12字...
分类:
其他好文 时间:
2015-07-15 12:30:43
阅读次数:
115