Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array. Formally the function should: Your algorithm ...
分类:
其他好文 时间:
2017-03-12 10:55:12
阅读次数:
134
Findthecontiguoussubarraywithinanarray(containingatleastonenumber)whichhasthelargestsum.
Forexample,giventhearray[-2,1,-3,4,-1,2,1,-5,4],
thecontiguoussubarray[4,-1,2,1]hasthelargestsum=6.题意:求连续子数组的最大和publicclassSolution{
publicintmaxSubArray(i..
分类:
编程语言 时间:
2017-03-11 22:10:41
阅读次数:
138
html5保留了之前很多基本标签,来,我们复习一下。 <!DOCTYPE html><html><head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, use ...
分类:
Web程序 时间:
2017-03-11 14:43:24
阅读次数:
140
Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a g ...
分类:
其他好文 时间:
2017-03-10 23:53:26
阅读次数:
342
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="maximum-scale=1.0,minimum-scale=0,width=device-width,initial-scale ...
分类:
其他好文 时间:
2017-03-10 18:12:31
阅读次数:
295
修改数据保护模式步骤前提:是否满足转换模式的配置要求最大保护(Maximum Protection):Standby Database 必须配置Standby Redo Log,Primary Database必须使用LGWR,SYNC,AFFIRM 方式归档到Standby Database.最高 ...
分类:
其他好文 时间:
2017-03-10 16:29:39
阅读次数:
188
最近在写一个移动端的页面,起初只知道使用百分比布局就可以适应多个终端,果然,是我太年轻。当设计师甩给我一张以iphone6像素为基准的750px设计图的时候,因为这段代码<meta name="viewport" content="width=device-width, initial-scale= ...
分类:
Web程序 时间:
2017-03-10 16:28:19
阅读次数:
228
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Example 2: Note: The length of the giv ...
分类:
编程语言 时间:
2017-03-10 12:57:49
阅读次数:
179
爬楼梯 class Solution {public: /** * @param n: An integer * @return: An integer */ int climbStairs(int n) { // { if(n<=0) { return 0; } else if(n==1) { r ...
分类:
其他好文 时间:
2017-03-09 20:31:33
阅读次数:
120
class Solution {public: /** * @param prices: Given an integer array * @return: Maximum profit */ int maxProfit(vector<int> &prices) { // write your co ...
分类:
其他好文 时间:
2017-03-09 15:30:06
阅读次数:
122