码迷,mamicode.com
首页 >  
搜索关键字:maximum    ( 4142个结果
HDU 3530 Subsequence(单调队列)
Problem Description There is a sequence of integers. Your task is to find the longest subsequence that satisfies the following condition: the difference between the maximum element and the minimum el...
分类:其他好文   时间:2015-04-14 21:37:54    阅读次数:175
android线程(二)AsyncTask(一)
AsyncTask的基本用法这里就不在赘述了,基本是个安卓开发者就会。 1.android 3.0以前的 AsyncTask private static final int CORE_POOL_SIZE = 5; private static final int MAXIMUM_POOL_SIZE = 128; private static final int KEEP_AL...
分类:移动开发   时间:2015-04-14 19:47:39    阅读次数:172
leetcode——Maximum Depth of Binary Tree (递归,)
Maximum Depth of Binary TreeTotal Accepted:59837Total Submissions:132940My SubmissionsQuestionSolutionGiven a binary tree, find its maximum depth.The ...
分类:其他好文   时间:2015-04-14 16:09:07    阅读次数:145
Maximum Subarray
refhttp://blog.csdn.net/linhuanmars/article/details/21314059DP经典题目,关于怎么动首尾部分,ref说的很明白public class Solution { public int maxSubArray(int[] A) { ...
分类:其他好文   时间:2015-04-14 11:05:28    阅读次数:105
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...
分类:其他好文   时间:2015-04-13 18:24:42    阅读次数:112
[LeetCode] Binary Tree Maximum Path Sum
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 ...
分类:其他好文   时间:2015-04-13 18:14:54    阅读次数:111
[LeetCode] Maximum Product Subarray
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], the contiguous s...
分类:其他好文   时间:2015-04-13 16:44:36    阅读次数:129
122-Best Time to Buy and Sell Stock II
题目: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-04-13 14:30:58    阅读次数:107
FontMetrics ----- 绘制文本,获取文本高度
Canvas 绘制文本时,使用FontMetrics对象,计算位置的坐标。 1 public static class FontMetrics { 2 /** 3 * The maximum distance above the baseline for the tallest g...
分类:其他好文   时间:2015-04-13 12:41:05    阅读次数:196
POJ 3693 Maximum repetition substring
刚开始一直WA,一直以为是自己往前延展的时候写错了,后来才发现是ST写错了 +-*/的优先级要比位运算优先级高,以后碰上不清楚优先级的运算一定要加括号 #include #include #include #include using namespace std; #define N 100010 char s[N]; int r[N],wa[N],wb[N],wv[N],ws[N],sa...
分类:其他好文   时间:2015-04-13 10:59:50    阅读次数:99
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!