1 Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Determ...
分类:
编程语言 时间:
2015-05-21 12:48:33
阅读次数:
144
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:
其他好文 时间:
2015-05-20 08:15:30
阅读次数:
133
使用spark.streaming.receiver.maxRate这个属性限制每秒的最大吞吐。官方文档如下:Maximum rate (number of records per second) at which each receiver will receive data. Effective...
分类:
其他好文 时间:
2015-05-19 12:36:22
阅读次数:
226
一 限制上传大小1:限制总文件的大小 。 如 上传10文件,设置最多总上传大小为100M。voidsetSizeMax(longsizeMax) Sets the maximum allowed size of a complete request, as opposed to setFile...
分类:
Web程序 时间:
2015-05-19 12:11:18
阅读次数:
166
Title: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, ...
分类:
其他好文 时间:
2015-05-18 16:35:54
阅读次数:
108
题目: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-05-18 12:41:10
阅读次数:
113
initial-scale初始缩放。即页面初始缩放程度。这是一个浮点值,是页面大小的一个乘数。例如,如果你设置初始缩放为“1.0”,那么,web页面在展现的时候就会以target density分辨率的1:1来展现。如果你设置为“2.0”,那么这个页面就会放大为2倍。maximum-scale最大....
分类:
其他好文 时间:
2015-05-18 12:30:25
阅读次数:
128
0.动态规划问题,和求最大连续和maximum subarray类似,但感觉比求最大连续和复杂的多
1.以0为分割元素获得一系列的区间
2.对每一个区间求最大值
3.具体到每一个区间,顺序查找一遍寻找最大的序列,逆序查找一遍寻找最大的序列,求顺序或逆序查找的最大值
4.注意:(tempCount1&1) == 1)可以节省好多时间,用%2==1就不行...
分类:
其他好文 时间:
2015-05-18 10:59:04
阅读次数:
146
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
/ 2 3
Return 6.
...
分类:
其他好文 时间:
2015-05-18 09:18:17
阅读次数:
102
content属性值 : width:可视区域的宽度,值可为数字或关键词device-width height:同width intial-scale:页面首次被显示是可视区域的缩放级别,取值1.0则页面按实际尺寸显示,无任何缩放 maximum-scale=1.0, minimum-sca...
分类:
移动开发 时间:
2015-05-17 23:21:11
阅读次数:
181