[POJ3693]Maximum repetition substring 试题描述 The repetition number of a string is defined as the maximum number R such that the string can be partitione ...
分类:
其他好文 时间:
2017-03-07 13:23:23
阅读次数:
222
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 ...
分类:
其他好文 时间:
2017-03-07 12:54:25
阅读次数:
115
Given a binary array, find the maximum number of consecutive 1s in this array if you can flip at most one 0. Example 1: Note: The input array will onl ...
分类:
其他好文 时间:
2017-03-07 08:46:32
阅读次数:
260
假设有一个数组,它的第i个元素是一支给定的股票在第i天的价格。如果你最多只允许完成一次交易(例如,一次买卖股票),设计一个算法来找出最大利润。 给出一个数组样例 [3,2,3,1,2], class Solution { public: /** * @param prices: Given an i ...
分类:
其他好文 时间:
2017-03-06 22:05:56
阅读次数:
131
写在前面的话: 要是做的网页同样为移动端所用,那么就要加上以下 标签: ok ~ ...
分类:
移动开发 时间:
2017-03-06 17:35:50
阅读次数:
195
虽说周末要早起来着,但是日子过得有点奇怪,一不小心就忘掉了。。。 leetcode414 https://leetcode.com/problems/third-maximum-number/?tab=Description leetcode leetcode 414说的是给你n个数字(无序,有重复 ...
分类:
其他好文 时间:
2017-03-04 15:15:53
阅读次数:
307
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple ...
分类:
其他好文 时间:
2017-03-02 21:57:41
阅读次数:
138
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no minimal-ui"> ...
分类:
Web程序 时间:
2017-03-02 16:36:46
阅读次数:
177
本地启动server的时候总是去读"/"的, 但到了服务器上,如果当前目录是服务器根目录下的一个文件夹,就应该设: ...
分类:
编程语言 时间:
2017-03-02 13:57:53
阅读次数:
221
In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue. For now, suppose you are a domin ...
分类:
其他好文 时间:
2017-02-28 20:56:02
阅读次数:
192