码迷,mamicode.com
首页 >  
搜索关键字:maximum    ( 4142个结果
5. Longest Palindromic Substring
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 longes ...
分类:其他好文   时间:2016-05-10 12:23:43    阅读次数:187
最近公共祖先(LCA)
1、 概述 LCA(Least Common Ancestors),即最近公共祖先,是指这样一个问题:在有根树中,找出某两个结点u和v最近的公共祖先(另一种说法,离树根最远的公共祖先)。 RMQ(Range Minimum/Maximum Query),即区间最值查询,是指这样一个问题:对于长度为n ...
分类:其他好文   时间:2016-05-10 09:41:35    阅读次数:246
include<climits> 快速使用
#include<climits>{ CHAR_BIT /* Maximum length of a multibyte character. */MB_LEN_MAX 1 /* Minimum and maximum values a `signed char' can hold. */SCHAR ...
分类:其他好文   时间:2016-05-10 08:26:38    阅读次数:163
LeetCode-Maximum Depth of Binary Tree
...
分类:其他好文   时间:2016-05-10 07:07:22    阅读次数:126
leetcode 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, ...
分类:其他好文   时间:2016-05-09 14:15:45    阅读次数:149
poj 2479 dp求分段最大和
Maximum sum Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 38079 Accepted: 11904 Description Given a set of n integers: A={a1, a2,..., an} ...
分类:其他好文   时间:2016-05-08 18:23:36    阅读次数:181
Binary Tree Maximum Path Sum - LeetCode
Given a binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any node in th ...
分类:其他好文   时间:2016-05-08 06:44:03    阅读次数:146
53.Maximum Subarray
...
分类:其他好文   时间:2016-05-08 06:40:09    阅读次数:132
maximum sum
uva,10684 1 #include <iostream> 2 #include <cstdio> 3 #define maxn 10005 4 using namespace std; 5 6 int main() 7 { 8 int n; 9 int a[maxn]; 10 while(sc ...
分类:其他好文   时间:2016-05-07 23:38:35    阅读次数:241
js获取智能机浏览器版本信息
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1, ...
分类:Web程序   时间:2016-05-07 18:02:00    阅读次数:190
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!