题目
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,?5,4],
the contiguous subarray [4,...
分类:
其他好文 时间:
2014-06-19 12:08:20
阅读次数:
270
题目
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.
...
分类:
其他好文 时间:
2014-06-19 11:46:47
阅读次数:
277
题目
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.
...
分类:
其他好文 时间:
2014-06-19 10:05:39
阅读次数:
278
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
此题和求二叉树的最短路径几乎一模一样。
public int...
分类:
其他好文 时间:
2014-06-15 16:36:40
阅读次数:
209
Question: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, .....
分类:
其他好文 时间:
2014-06-14 20:59:07
阅读次数:
188
原题地址:https://oj.leetcode.com/problems/maximum-subarray/题意:Find
the contiguous subarray within an array (containing at least one number) which
has the ...
分类:
编程语言 时间:
2014-06-12 17:06:04
阅读次数:
339
原题地址:https://oj.leetcode.com/problems/maximum-depth-of-binary-tree/题意:Given
a binary tree, find its maximum depth.The maximum depth is the number of n...
分类:
编程语言 时间:
2014-06-12 13:55:34
阅读次数:
210
在head标签中加入以上meta声明。具体属性可以谷歌/百度。
我查了下viewport,有几个属性:width - viewport的宽度 height - viewport的高度initial-scale -
初始的缩放比例minimum-scale - 允许用户缩放到的最小比例maximum-...
分类:
移动开发 时间:
2014-06-12 10:24:54
阅读次数:
430