码迷,mamicode.com
首页 >  
搜索关键字:maximum product suba    ( 9145个结果
leetcode - 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. /** * Definition for binary tree ...
分类:其他好文   时间:2014-10-06 16:08:40    阅读次数:181
LeetCode Maximum Product Subarray 解题报告
LeetCode 新题又更新了,最大子数组乘积 题目分析:求一个数组,连续子数组的最大乘积。...
分类:其他好文   时间:2014-10-06 15:26:40    阅读次数:175
Leetcode: Best Time to Buy and Sell Stock III
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 complet...
分类:其他好文   时间:2014-10-06 14:52:50    阅读次数:220
oracle增加表空间的方法示例
oracle增加表空间的四种方法增加oracle表空间大小的四种方法1、给表空间增加数据文件alter tablespace app_data add datafile'd:\oracle\product\10.2.0\oradata\edwtest\app03.dbf' size 50m;2、新增...
分类:数据库   时间:2014-10-06 13:43:20    阅读次数:251
Binary Tree Maximum Path Sum
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 ...
分类:其他好文   时间:2014-10-05 23:13:59    阅读次数:166
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. 点击打开原题链接 这个题剑指offer里也有,简单的递归即可,代码很清晰:...
分类:其他好文   时间:2014-10-05 22:56:09    阅读次数:185
LeetCode:Maximum Product Subarray
题目:Maximum Product SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest product. For example, g...
分类:其他好文   时间:2014-10-05 21:45:29    阅读次数:198
最大似然估计(Maximum likelihood estimation)
最大似然估计是一种非常有效的参数估计的数学方法,常用于在主题建模等领域。其思想是,对于已知的样本,假设它服从某种模型,估计模型中未知的参数,使该模型出现这些样本的概率最大。...
分类:其他好文   时间:2014-10-05 15:26:18    阅读次数:173
用PL/SQL远程连接Oracle
1.远程连接Oracle无需打开Oracle服务,可以在服务中将其管理,节约点资源2.修改oracle目录下tnsnames.ora文件 我的目录是:D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora最后面添加:ora = (DESCRI...
分类:数据库   时间:2014-10-05 01:07:27    阅读次数:236
POJ 3693 Maximum repetition substring 后缀数组
论文里面的神题,题意大概是找出当前字符串中的一个子串,使得这个子串由N个字符串循环构成,输出N最大的子串,如果有多输出字典序最小的一个。解决方法感觉很犀利。。首先,对于循环节长度为L的子串,必然有这个子串会经过str[0],str[L],str[2*L]...中的任意两个字符,也就是必然会经过str...
分类:其他好文   时间:2014-10-04 23:57:07    阅读次数:319
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!