content属性值 : width:可视区域的宽度,值可为数字或关键词device-width height:同width intial-scale:页面首次被显示是可视区域的缩放级别,取值1.0则页面按实际尺寸显示,无任何缩放 maximum-scale=1.0, minimum-scale=1 ...
分类:
其他好文 时间:
2016-08-05 13:53:56
阅读次数:
126
先要搞明白:最长公共子串和最长公共子序列的区别。 最长公共子串(Longest Common Substirng):连续 最长公共子序列(Longest Common Subsequence,LCS):不必连续 实在是汗颜,网上做一道题半天没进展: 给定一个字符串s,你可以从中删除一些字符,使得剩下 ...
分类:
其他好文 时间:
2016-08-05 00:57:05
阅读次数:
134
Longest Increasing Subsequence(LIS) 一个美丽的名字 非常经典的线性结构dp [朴素]:O(n^2) d(i)=max{0,d(j) :j<i&&a[j]<a[i]}+1 直接两个for [二分查找优化]:O(n^2) g(i):d值为i的最小的a 每次更新然后lo ...
分类:
其他好文 时间:
2016-08-05 00:49:46
阅读次数:
150
Description Alice has a sequence A, She wants to split A into as much as possible continuous subsequences, satisfying that for each subsequence, every ...
分类:
其他好文 时间:
2016-08-05 00:31:56
阅读次数:
190
问题链接:UVA11059 Maximum Product。基础级练习题,用C语言编写程序。
题意简述:输入n个整数序列,有正有负,求这个序列中最大连续累乘的子序列,其最大的值为多少。如果结果为负数,则输出0。
问题分析:如果整数序列中有0,则用0分段然后分别计算。对于每个分段(可能只有一个分段),其中没有0,如果其中有偶数个负数,则将分段中所有的数相乘就是所求结果。如果分段中有奇数个负数...
分类:
其他好文 时间:
2016-08-04 19:31:18
阅读次数:
133
呜呜做过一次,但是还是记不得了。 大概就是这样。希望能够记住!! 时间复杂度是O(n) ...
分类:
其他好文 时间:
2016-08-04 06:47:50
阅读次数:
153
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum ...
分类:
其他好文 时间:
2016-08-04 01:35:28
阅读次数:
173
RMQ(Range Minimum/Maximum Query)问题:RMQ问题是给定一个区间,求这个区间中的最大或最小值的问题 RMQ采用动态规划的思想来求解:(st算法:Square Table): 预处理:预处理使用DP的思想,f(i, j)表示[i, i+2^j - 1]区间中的最小值。 例 ...
分类:
其他好文 时间:
2016-08-03 23:49:07
阅读次数:
266
1、INFO: Maximum number of threads (200) created for connector with address null and port 8091 说明:最大线程数错误 解决方案: 使用线程池,用较少的线程处理较多的访问,可以提高tomcat处理请求的能力。使 ...
分类:
其他好文 时间:
2016-08-02 20:57:13
阅读次数:
142
Description: Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1 <= i <= j <= ...
分类:
其他好文 时间:
2016-08-02 19:05:55
阅读次数:
204