应用程序连接测试数据库时报ORA-12516:TNS:listener could not find 
available handler with matching protocol stack 检查监听日志文件,发现大量的TNS-12516错误 cd 
/u01/app/oracle/product...
                            
                            
                                分类:
其他好文   时间:
2014-05-16 18:23:03   
                                阅读次数:
247
                             
                    
                        
                            
                            
                                题目: Givennpoints on a 2D plane, find the maximum 
number of points that lie on the same straight line.解题思路: 
第一反应:枚举两个点组成的直线,然后看其他的点在不在这条直线上,在此过程中统计最大.....
                            
                            
                                分类:
其他好文   时间:
2014-05-16 05:54:57   
                                阅读次数:
193
                             
                    
                        
                            
                            
                                【题目】
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the len...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 14:40:14   
                                阅读次数:
320
                             
                    
                        
                            
                            
                                Given an array of integers, every element appears twice except for one. Find that single one....
                            
                            
                                分类:
其他好文   时间:
2014-05-15 07:20:39   
                                阅读次数:
264
                             
                    
                        
                            
                            
                                leetCode-002 Median of Two Sorted Arrays
【题目】
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
【题意】
有两个有序的数组,找出这两数组整合后的中位数,要求时间复杂度O(nlogn)...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 04:42:05   
                                阅读次数:
274
                             
                    
                        
                            
                            
                                LeetCode-001 Two Sum 
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 04:34:50   
                                阅读次数:
293
                             
                    
                        
                            
                            
                                题目
Given a non-negative number represented as an array of digits, plus one to the number.
The digits are stored such that the most significant digit is at the head of the list.
解答
本题考察进位问题,注...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 04:16:56   
                                阅读次数:
245
                             
                    
                        
                            
                            
                                1.什么是re
        正则表达式一门相对通用的语言,在python中也有对正则表达式的支持,那就是的内置re模块。正则表达式就是一系列的规则去匹配字符串然后进行相应的操作,这些规则网上一搜一大片,而re则是运用正则表达式来提供一系列的功能强大的接口让我们来调用。通常我们在对日志文件进行操作的时候会对正则表达式运用的比较多来得到我们希望得到的数据。
2.python中的转义符...
                            
                            
                                分类:
编程语言   时间:
2014-05-15 03:58:49   
                                阅读次数:
465
                             
                    
                        
                            
                            
                                【题目】
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
                             
                    
                        
                            
                            
                                还没有处理lambda、上下文等,有待完善。
main
{
	for
		putsl(eval(getsl))
}
rstr eval(rstr s)
{
	s=tokenize(s)
	v=s.split(' ')
	if v.get(0)!='('
		return v.get(0)
	next=find(v.sub(2))+2
	switch v.get(1)
	case '+'
		r...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 15:32:34   
                                阅读次数:
323