码迷,mamicode.com
首页 >  
搜索关键字:maximum    ( 4142个结果
leetcode - Jump Game II
题目: Jump Game II   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 ...
分类:其他好文   时间:2015-06-29 10:06:13    阅读次数:103
Maximum Depth of Binary Tree
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 le...
分类:其他好文   时间:2015-06-27 06:24:03    阅读次数:127
[LeetCode] Jump Game II
Jump Game II 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 posi...
分类:其他好文   时间:2015-06-25 21:15:22    阅读次数:137
[LeetCode] Max Points on a Line
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.Hide TagsHash TableMath给出平面上的点,问一条直线最多穿过几个点.要不是之前看过这个...
分类:其他好文   时间:2015-06-25 19:18:34    阅读次数:124
Maximum Product Subarray
最大乘积子序列思想:动态规划+最大最小数组 状态方程:考虑到负数,所以加上一个min。 max[i] = Max(max[i-1]*nums[i],min[i-1]*nums[i],nums[i]); min[i] = Min(max[i-1]*nums[i],min[i-1]*n...
分类:其他好文   时间:2015-06-25 12:03:29    阅读次数:95
53. Maximum Subarray
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,...
分类:其他好文   时间:2015-06-25 10:17:54    阅读次数:133
Maximum Depth of Binary Tree
1. Question求二叉树的最大深度。Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node do...
分类:其他好文   时间:2015-06-25 00:00:30    阅读次数:281
Leetcode--easy系列6
#104 Maximum Depth of Binary Tree 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...
分类:其他好文   时间:2015-06-24 22:38:28    阅读次数:164
Maximum Depth of Binary Tree-求二叉树高度
非递归: public static int maxDepth(TreeNode root){ if(root==null) return 0; Queue q=new LinkedList(); q.offer(root); int enQu...
分类:其他好文   时间:2015-06-24 12:26:34    阅读次数:98
LeetCode152: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 subarray [2,3] has the largest produ...
分类:其他好文   时间:2015-06-23 23:15:40    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!