问题: 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 co...
分类:
其他好文 时间:
2014-10-10 00:18:11
阅读次数:
398
问题:http://localhost:5560/isqlplus/dba 任意账号无法登陆登录之后:认证的身份是SYS@orcl AS SYSDBA先启动isqlplus服务,>isqlplusctlstart进入oracle的目录 product\10.2.0\db_1\oc4j\j2ee\is...
分类:
数据库 时间:
2014-10-09 23:58:57
阅读次数:
251
1.概述RMQ(Range Minimum/Maximum Query),即区间最值查询,是指这样一个问题:对于长度为n的数列A,回答若干询问RMQ(A,i,j)(i,jO(nlogn){for(int j = 1; j #include #include using namespace std;c...
分类:
其他好文 时间:
2014-10-09 23:36:27
阅读次数:
627
a(i):以节点i作为终点的单边最大路径和
b(i):以节点i作为终点的双边边最大路径和
a(i) = max{ i->val,
i->val + max{a(i->left), a(i->right) }};
b(i) = max{ i->val, i->val + max{a(i->left), a(i->right) } ,
i->val + a(i->left) + a(...
分类:
其他好文 时间:
2014-10-09 22:49:47
阅读次数:
141
问题描述:我以前默认的ORACLE_SID是orcl,现在我想做数据同步,必须的有不同的ORACLE_SID,以便区分开来。现在仅需要简单的几个步骤就可以修改好ORACLE_SID;1.首先shutdownimmediate(注意不要shutdownabort)2.修改oracle用户的环境变量:~/.bash_prfile[oracle@oracle~]$v..
分类:
数据库 时间:
2014-10-09 20:20:48
阅读次数:
197
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.
Determine i...
分类:
其他好文 时间:
2014-10-09 16:59:57
阅读次数:
203
[leetcode]Given a binary tree, find the maximum path sum....
分类:
其他好文 时间:
2014-10-09 16:29:28
阅读次数:
161
Maximum Subarray
Total Accepted: 28381 Total Submissions: 83696 My Submissions
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For exam...
分类:
其他好文 时间:
2014-10-09 16:27:18
阅读次数:
237
转自:http://blog.csdn.net/ipqxiang/article/details/1955677一、抽象工厂(Abstract Factory)模式抽象工厂模式是所有形态的工厂模式中最为抽象和最具一般性的一种形态。为了方便引进抽象工厂模式,引进一个新概念:产品族(Product Fa...
分类:
其他好文 时间:
2014-10-09 15:36:54
阅读次数:
274
1.使用platform密钥对apk进行签名1.1.进入/build/target/product/security,找到【platform.pk8】和【platform.x509.pem】系统密钥。1.2.进入/build/tools/signapk找到SignApk.java,执行javac编译...
分类:
移动开发 时间:
2014-10-09 14:54:44
阅读次数:
213