Given an unsorted array of integers, find the 
length of the longest consecutive elements sequence.For example,Given[100, 4, 
200, 1, 3, 2],The longest ...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:16:14   
                                阅读次数:
408
                             
                         
                    
                        
                            
                            
                                Given a string s and a dictionary of words 
dict, determine if s can be segmented into a space-separated sequence of one or 
more dictionary words.For e...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:08:32   
                                阅读次数:
383
                             
                         
                    
                        
                            
                            
                                Hello World!My first blog! I must try my best 
to learn Python!print ("Hello World")
                            
                            
                                分类:
其他好文   时间:
2014-04-29 09:41:46   
                                阅读次数:
300
                             
                         
                    
                        
                            
                            
                                题目描述
Cainiao is a university student who loves ACM contest very much. It is a festival for him once when he attends ACM Asia Regional Contest because he always can find some famous ACMers there.
C...
                            
                            
                                分类:
其他好文   时间:
2014-04-28 10:33:40   
                                阅读次数:
340
                             
                         
                    
                        
                            
                            
                                这道题中要求时间复杂度为O(n),首先我们可以知道的是,如果先对数组排序再计算其最长连续序列的时间复杂度是O(nlogn),所以不能用排序的方法。我一开始想是不是应该用动态规划来解,发现其并不符合动态规划的特征。最后采用类似于LRU_Cache中出现的数据结构(集快速查询和顺序遍历两大优点于一身)来...
                            
                            
                                分类:
其他好文   时间:
2014-04-28 10:21:19   
                                阅读次数:
1003
                             
                         
                    
                        
                            
                            
                                1、思考问题
在某张表中,存在一个id列(整数),用户希望在添加记录的时候,该列从1开始,自动的增长,如何处理?
2、介绍
Oracle通过序列处理自动增长列。
(1) 可以为表中的列自动产生值
(2) 由用户创建数据库对象,并可由多个用户共享。
(3) 一般用于主键或唯一列
(4) 序列也是一种数据对象
3、定义序列
²  格式:
Create sequence 序列名
[...
                            
                            
                                分类:
数据库   时间:
2014-04-27 22:26:46   
                                阅读次数:
325