描述:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest...
分类:
其他好文 时间:
2015-04-12 20:54:09
阅读次数:
137
题目链接:UVA - 10827题意描述:给出一个n*n矩阵,把第一行和最后一行粘一起,把第一列和最后一列粘一起,形成一个环面,求出这个环面中最大的矩阵和。算法分析:首先复制n*n这个矩阵,形成由4个这样小矩阵组成的大矩阵,然后在这个大矩阵里找出最大矩阵和,一看貌似和poj1050这道题有些相似,但...
分类:
其他好文 时间:
2015-04-12 01:14:46
阅读次数:
192
/*最大连续子序列*/class Solution {public: int maxSubArray(int A[], int n) { if(!n) return 0; int result = A[0],temp =0 ; for(int i = ...
分类:
其他好文 时间:
2015-04-11 16:05:23
阅读次数:
116
求一棵树的最大深度 思路:广度优先搜索即可 class Solution {public: int maxDepth(TreeNode *root) { int depth = 0; if (!root) return depth; queue nodeQue; nodeQue.push(root)...
分类:
其他好文 时间:
2015-04-11 11:38:05
阅读次数:
117
https://leetcode.com/problems/maximum-gap/Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try ...
分类:
其他好文 时间:
2015-04-10 17:45:05
阅读次数:
176
一:Jump Game
题目:
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that posi...
分类:
其他好文 时间:
2015-04-10 13:37:59
阅读次数:
197
D. Little Girl and Maximum XOR
A little girl loves problems on bitwise operations very much. Here's one of them.
You are given two integers
l and r. Let's consider the values of
for all pa...
分类:
其他好文 时间:
2015-04-10 09:40:40
阅读次数:
147
默许:核算面积。以习惯页面:最小规划和最大规划的物业核算规划
minimum-scale – The minimum scale of viewport. 最小规划 -视口的最低规划。[Default: 0.25, Range: >0 - 10] [默许:0.25规划:0 - 10] maximum-scale – The maximum scale of viewport. 最大规划的-视口的...
分类:
其他好文 时间:
2015-04-10 01:24:19
阅读次数:
228
性能调优文档前言蛋疼的sysctl网络调优设置,不知道就别瞎改Sysctl/sysfs 参数调整和计算网络1 设置Maximum receive/send socket buffer sizenet.core.rmem_max,net.core.wmem_max和Bandwidth Delay Pr...
分类:
其他好文 时间:
2015-04-09 19:20:01
阅读次数:
378
题目:Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguo...
分类:
其他好文 时间:
2015-04-09 17:25:35
阅读次数:
171