题目: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-15 21:20:54
阅读次数:
101
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
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
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
refhttp://blog.csdn.net/linhuanmars/article/details/21314059DP经典题目,关于怎么动首尾部分,ref说的很明白public class Solution { public int maxSubArray(int[] A) { ...
分类:
其他好文 时间:
2015-04-14 11:05:28
阅读次数:
105
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
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
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
题目: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
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