码迷,mamicode.com
首页 >  
搜索关键字:maximum product suba    ( 9145个结果
Binary Tree Maximum Path Sum
这道题一眼看上去就是一个递归的算法,对于一棵树,分三种情况,包括根、仅左子树、仅右子树,递归的确认最大值,其中第一种情况(路径中包含根)分析可知它会一直包含根,后两中就复杂点,需要一直递归处理每颗子树。代码如下:int maxPathSumWithRoot(TreeNode *root) { if ...
分类:其他好文   时间:2014-08-30 21:43:10    阅读次数:307
C#与Oracle数据库
一.连接Oracle数据库 安装客户端: oracle数据库搭建在远程服务器上,本地只需要装个客户端,然后在安装目录下(D:\app\fangs\product\12.1.0\client_3\Network\Admin ,不一定是D盘) 配置tnsnames.ora,配置可以参考同目录下的Sample 文件夹中的内容。就是指明连接名,远程ip,servicename/SID。 然后...
分类:数据库   时间:2014-08-30 13:54:29    阅读次数:232
mysql之insert,update,delete
测试数据1.product表CREATEtableproduct(idINT(10)PRIMARYKEYNOTNULL,nameVARCHAR(20)NOTNULL,functionVARCHAR(50)DEFAULTNULL,companyVARCHAR(20)NOTNULL,addressVARCHAR(50)DEFAULTNULL);1.medicine表CREATEtablemedicine(idINT(10)PRIMARYKEYNOTNULL,nameVARCHAR(20)NOTNULL..
分类:数据库   时间:2014-08-30 02:27:39    阅读次数:290
源码包的安装
实验二:源码包的安装实验目标:源码包的安装1.安装gcc(yum–yinstallgcc*)[root@localhost~]#yum-yinstallgcc*Loadedplugins:product-id,security,subscription-managerThissystemisnotregisteredtoRedHatSubscriptionManagement.Youcanusesubscription-managertoregister.S..
分类:其他好文   时间:2014-08-30 02:27:19    阅读次数:307
orcal中创建和删除表空间和用户
1.创建表空间create tablespace NW_DATAlogging datafile 'F:\oracle\product\10.2.0\oradata\nwdb\NW_DATA.dbf' size 64m autoextend on next 64m maxsize 20480m e....
分类:其他好文   时间:2014-08-29 17:48:08    阅读次数:326
oracle 数据库磁盘自动备份的目录
oracle11G当你用久了之后,发现磁盘空间会减少,并且没有对数据导入数据,过一段时间之后你会发现磁盘空间已经没有空间了,后来我找到原因是oracle11G会自动备份数据库,备份的目录在:F:\oracle11g\product\11.2.0\dbhome_3\database,你可以找到改目录下,将其删了就可以了
分类:数据库   时间:2014-08-29 16:19:48    阅读次数:239
[LeetCode] 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,...
分类:其他好文   时间:2014-08-29 01:18:46    阅读次数:187
PowerShell远程安装应用程序
安装MSI包使用PowerShell调用WMI对象,你可以执行下面的脚本来安装你的MSI安装包:1 $box="deviis01" #this is the name of your server2 $product= [WMICLASS]"\\$box\ROOT\CIMV2:win32_Produ...
分类:其他好文   时间:2014-08-28 14:41:19    阅读次数:476
Linux源码包的安装
实验03:源码包安装实验目标掌握gcc的安装熟练源码包的安装实验步骤安装gcc[root@localhostyum.repos.d]#yum-yinstallgcc*Loadedplugins:product-id,security,subscription-managerThissystemisnotregisteredtoRedHatSubscriptionManagement.Youcanusesubscription-managertore..
分类:系统相关   时间:2014-08-28 09:50:49    阅读次数:400
【leetcode】Jump Game I, II 跳跃游戏一和二
题目: Jump Game I: 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...
分类:其他好文   时间:2014-08-28 02:07:48    阅读次数:249
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!