关于tomcat的一个优化问题:
有时候保存大数据量的数据时,tomcat不优化的话,页面会没反应,tomcat后台并不报错,只是提示下面内容:
警告: More than the maximum number of request parameters (GET plus POST) for a s
ingle request ([10,000]) were detected. Any p...
分类:
其他好文 时间:
2014-12-18 13:36:33
阅读次数:
181
之前好像做过这样的,以前是加法,现在是乘法。一开始我也傻逼得用n方的试了下,肯定是TLE的。那显然就是可以O(n)解决了用两个dp数组,一个存最大值,一个存最小值,因为可能是负数再乘以负数就很大了,所以每次更新需要借助最小值一同更新最大值。最后遍历一边dp大的数组就有答案了。class Soluti...
分类:
其他好文 时间:
2014-12-18 11:47:43
阅读次数:
152
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:
其他好文 时间:
2014-12-18 00:08:32
阅读次数:
194
题目描述:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique l...
分类:
其他好文 时间:
2014-12-17 16:10:40
阅读次数:
167
QUESTIONGiven n points on a 2D plane, find the maximum number of points that lie on the same straight line.1ST TRY/** * Definition for a point. * stru...
分类:
其他好文 时间:
2014-12-16 23:55:56
阅读次数:
201
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/41964475
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node....
分类:
其他好文 时间:
2014-12-16 21:07:51
阅读次数:
197
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.
Try to solve it in linear time/space.
Return 0 if the array contains less than 2 elements.
Y...
分类:
其他好文 时间:
2014-12-16 19:18:41
阅读次数:
230
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.Solution: 1 /** 2 * Definition for a point. 3 ...
分类:
其他好文 时间:
2014-12-16 06:30:33
阅读次数:
249
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the...
分类:
其他好文 时间:
2014-12-15 23:31:49
阅读次数:
214
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
/**
* Definition for binary tree
...
分类:
其他好文 时间:
2014-12-15 21:52:22
阅读次数:
124