题目描述Given a number sequence whose length is n, you 
can delete at most k numbers in the sequence.After that you are asked to answer 
the maximum length ...
                            
                            
                                分类:
其他好文   时间:
2014-05-19 22:21:32   
                                阅读次数:
304
                             
                    
                        
                            
                            
                                pfile 
默认的名称为“init+例程名.ora”文件路径:/app/oracle/product/10.2.0/dbs,这是一个文本文件,可以用任何文本编辑工具打开。spfile 
默认的名称为“spfile+例程名.ora”文件路径:/app/oracle/product/10.2.0/dbs以...
                            
                            
                                分类:
其他好文   时间:
2014-05-19 11:39:22   
                                阅读次数:
373
                             
                    
                        
                            
                            
                                Win7旗舰版安装Oracle11g后,数据库可以正常使用,重启系统,再次连接数据库,提示:ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务解决方法: 
1、打开listener.ora文件(\product\11.2.0\dbhome_1\NETWORK\ADMIN\)。 .....
                            
                            
                                分类:
数据库   时间:
2014-05-19 08:20:35   
                                阅读次数:
301
                             
                    
                        
                            
                            
                                ocm02库与GC安装与配置
安装顺序:ocmdb02库(host:ocm02)
1.安装ocmdb02库 作用:存放历史数据,用于历史分析 --后续安装oms,oms需要一个容器来存放各个agent推送来的信息,ocmdb02就是这个容器。
2.配置oracle用户环境变量
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export LD_LIBRARY_PATH=$ORACLE_HOM...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 05:52:11   
                                阅读次数:
238
                             
                    
                        
                            
                            
                                测试环境:Oracle Enterprise Linux 64-bit (5.8版本) + Oracle 11g 64位相关说明: Oracle11g64位软件的安装位置为/u01/app/oracle/product/11.2.0/dbhome_1 ,数据库名为默认的orcl,Linux虚拟机的IP设置为192.168.1.121一、修改listener.ora文件内容命令:[oracle@gp...
                            
                            
                                分类:
数据库   时间:
2014-05-15 05:16:19   
                                阅读次数:
433
                             
                    
                        
                            
                            
                                1.ORACLE软件安装到86%时报错,图忘截了。日志如下:
/oracle/u01/app/oracle/product/11.2.0/
INFO: db_1/lib/sysliblist` -R /opt/SUNWcluster/lib -R/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib -R /opt/ORCLcl...
                            
                            
                                分类:
数据库   时间:
2014-05-15 05:00:12   
                                阅读次数:
334
                             
                    
                        
                            
                            
                                【题目】
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.
【题意】
题意是找出字符串S中最长回文子串,S最长为1000,保证有唯一解
【思路】
    	原字符串用特殊字符#间隔,如下所示:
		#a...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 03:31:25   
                                阅读次数:
299
                             
                    
                        
                            
                            
                                第三道树的题目,我还是不会,我擦,怎么递归算法还是不能很好理解。看来还得好好研究下递归算法。题目:求一棵树的最大深度。思路:递归地求取左子树最大深度 
和 右子树最大深度,返回较大值即为 整棵树的 最大深度。代码:public int maxDepth(TreeNode root) { ...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 23:07:14   
                                阅读次数:
373
                             
                    
                        
                            
                            
                                题意:最大连续子序列和,在一个数组中找到和最大的连续子数组
思路:dp, 对于第i个数,有两种选择:把它加入在子数组里,不加入子数组(子数组到此结束)
加不加入子数组,要比较它加入前后子数组的总和是变大了还是变小了,如果变大则加入,变小则不加入
所以,我们需要记录以i-1结尾的子数组的总和,最后的结果在这些总和中取最大的那个
f[i] = max(f[i-1]+a[i],f[i-1]);
max({f[i]})
实现时用两个变量,一个保存f[i-1],一个保存目前为止最大的f[i]
复杂度:时间O(n),空...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 21:53:14   
                                阅读次数:
250
                             
                    
                        
                            
                            
                                Total Accepted: 8400 Total Submissions: 38235 My Submissions
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 profi...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 19:39:53   
                                阅读次数:
275