码迷,mamicode.com
首页 >  
搜索关键字:maximum    ( 4142个结果
LeetCode56: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 position. Determine if yo...
分类:其他好文   时间:2015-06-05 15:48:10    阅读次数:129
[leetcode 5]longest palindromic substring
1 题目:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longe...
分类:其他好文   时间:2015-06-05 15:31:51    阅读次数:137
Java for LeetCode 152 Maximum Product Subarray
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],t...
分类:编程语言   时间:2015-06-05 13:35:21    阅读次数:133
NMS:Non-maximum Suppression学习笔记
非极大值抑制可看成一种局部极大值搜索,这里的局部极大值要比他的邻域值都要大。这里的邻域表示有两个参数:维度和n-邻域。维度有1-D,2-D,3-D...;至于n值根据具体情况设置。举个例子:一维的情况,某个像素点左右各n个邻域点(加上该像素点,邻域区域共有2n+1个像素);二维的情况以当前像素为中心...
分类:其他好文   时间:2015-06-05 10:10:04    阅读次数:166
Java for LeetCode 149 Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.解题思路:本题主要需要考虑到斜线的情况,可以分别计算出过points[i]直线最多含几个点,然后算出最...
分类:编程语言   时间:2015-06-05 00:34:41    阅读次数:138
Maximum Subsequence Sum (25)
升级版的最大子列和问题没什么好说的#include using namespace std;int main(){ int n; cin >> n; int *a = (int*)malloc(n*sizeof(int)); for (int i = 0; i > a[i];...
分类:其他好文   时间:2015-06-04 22:38:40    阅读次数:191
Codeforces 484B Maximum Value(排序+二分)
题目链接: http://codeforces.com/problemset/problem/484/B题意: 求a[i]%a[j] (a[i]>a[j])的余数的最大值分析: 要求余数的最大值非常明显a[i]越接近a[j]的倍数则余数越大 ,因此我们将全部的元素从大到小排序 ;然后...
分类:编程语言   时间:2015-06-04 20:53:47    阅读次数:166
tcp一些要点
三次握手建立1、客户端向服务端发送syn。2、服务端向客户端回复syn+ack。3、客户端向服务端确认ack。建立链接的阶段, 客户端/服务端会确认mss(maximum segment size)。客户端发送mssA,服务器响应mssB。二者之间小的那个作为MSS。建立的过程一边确认RTT。四次挥...
分类:其他好文   时间:2015-06-03 23:14:23    阅读次数:234
查看程序占用tomcat内存情况
最近,公司线上tomcat经常无缘无辜宕机,总结了一下定位问题的方法,仅供参考: 报错信息: Maximum number of threads (200) created for connector with address null and port 9443 # There is insufficient memory for the Java Runtime Environment t...
分类:其他好文   时间:2015-06-03 13:47:45    阅读次数:138
【Best Time to Buy and Sell Stock III 】cpp
题目:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complet...
分类:其他好文   时间:2015-06-02 16:51:05    阅读次数:117
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!