传统代理需要手动设置代理服务器的地址和端口,然后使用代理服务器访问网络配置squid.conf主要配置如下
http_port3128//用于指定代理服务器监听的地址和端口
cache_mem64MB//指定缓存功能使用的内存空间,建议为实际物理内存的1/4
maximum_object_size4096KB//允许保存到缓存空..
分类:
其他好文 时间:
2014-12-19 02:00:40
阅读次数:
516
Binary Tree Maximum Path SumGiven a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the be...
分类:
其他好文 时间:
2014-12-18 23:37:42
阅读次数:
417
这是一道神奇的题目..论文里面说得不清楚,其实是这样...如果一个长度为l的串重复多次,那么至少s[1],s[l+1],s[2*l+1],..之中有相邻2个相等...设这时为j=i*l+1,k=j+l,我们这时候借助SA和RMQ O(1)求出:m=lcp(j,k),这时候,重复次数至少ans=m ....
分类:
其他好文 时间:
2014-12-18 22:15:30
阅读次数:
171
width - viewport的宽度 height - viewport的高度initial-scale - 初始的缩放比例minimum-scale - 允许用户缩放到的最小比例maximum-scale - 允许用户缩放到的最大比例user-scalable - 用户是否可以手动缩放
分类:
移动开发 时间:
2014-12-18 21:52:54
阅读次数:
408
题目Maximum Depth of Binary Tree通过率44.2%难度EasyGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest pat...
分类:
其他好文 时间:
2014-12-18 20:28:05
阅读次数:
214
标题:Maximum Depth of Binary Tree通过率:44.2%难度:简单Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest pa...
分类:
其他好文 时间:
2014-12-18 15:05:18
阅读次数:
153
关于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