lnmp架构是现在很常用的,拜读过张晏的博客,内核,php-fpm,nginx,fastcgi进行调优,用autobench压力测试,访问php页面,从100个并发开始,每次加50个,直到1000个并发,pm=static,pm.max_children=128,机器8G内存,CPU是L5520,测...
分类:
Web程序 时间:
2014-07-16 23:16:55
阅读次数:
352
概述:本文主要讲述一些搜索算法的使用,以及其中奥妙思想的思考。 一:广度搜索与深度搜索---BFS与DFS 1:实现算法导论中的BSF #include #define MAX 1000000struct Node{ int d; int p; int color; int id;};int _tm...
分类:
其他好文 时间:
2014-07-16 23:08:16
阅读次数:
224
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:
其他好文 时间:
2014-07-10 11:24:15
阅读次数:
229
题目:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the ta...
分类:
其他好文 时间:
2014-06-28 08:17:11
阅读次数:
305
hdu 1081 & poj 1050 To The Max(和最大的子矩阵)...
分类:
其他好文 时间:
2014-06-28 08:16:30
阅读次数:
223
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum
= 22,
5
/ ...
分类:
其他好文 时间:
2014-06-28 07:31:28
阅读次数:
214
在比较操作(==,!=,>,=,<=),matches,算数操作(+,-,*,/ ,包含%,?,CASE)中,如果有一个操作数为空,那么结果为空。
COUNT_STAR ,不过滤null数据
CAST 操作:将一个null数据从一个数据类型转换到另一个数据类型,结果为空
AVG,MIN,MAX,SUM,COUNT :这几个操作将忽略空值
CONCAT :任意...
分类:
其他好文 时间:
2014-06-27 23:24:12
阅读次数:
304
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
分类:
其他好文 时间:
2014-06-27 23:02:33
阅读次数:
258
感谢微信平台---一天一道算法题--每天多一点进步----其实今天我接下去补上的几题都来自---待字闺中 所以我就原封不动的将它的题目与分析搬过来了原题给定一个数组,我们可以找到两个不相交的、并且是连续的子数组A和B,A中的数字和为sum(A), B中的元素和为sum(B)。找到这样的A和B,满足s...
分类:
其他好文 时间:
2014-06-27 22:31:04
阅读次数:
342
这是一个简单的JSP页面
<%
int i,sum=0;
for( i=1;i
1到100的连续和是:
将该文件保存为example1.jsp 保存到Tomcat 中RooT目录中,然后运行在浏览器中输入 http://localhos...
分类:
Web程序 时间:
2014-06-27 10:04:22
阅读次数:
192