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-05-10 20:06:26   
                                阅读次数:
404
                             
                    
                        
                            
                            
                                一、数组于简单排序 数组 
数组(array)是相同类型变量的集合,可以使用共同的名字引用它。数组可被定义为任何类型,可以是一维或多维。数组中的一个特别要素是通过下标来访问它。数组提供了一种将有联系的信息分组的便利方法。 
一维数组 一维数组(one‐dimensional array )实质...
                            
                            
                                分类:
编程语言   时间:
2014-05-06 09:16:37   
                                阅读次数:
383
                             
                    
                        
                            
                            
                                Problem DescriptionThere are n people and n 
target, everyone should get one target, no two people get the same target, the 
last one who get the target...
                            
                            
                                分类:
其他好文   时间:
2014-05-06 09:00:51   
                                阅读次数:
354
                             
                    
                        
                            
                            
                                Problem DescriptionGiven n integers.You have two 
operations:U A B: replace the Ath number by B. (index counting from 0)Q A B: 
output the length of the...
                            
                            
                                分类:
其他好文   时间:
2014-05-06 01:20:33   
                                阅读次数:
332
                             
                    
                        
                            
                            
                                4月30日消息,百视通今日与微软共同宣布,于今年9月在华发布Xbox 
One。这是继百视通与微软2013年9月成立合资公司后,双方合作的又一进展。微软副总裁,硬件及设计工作室部门主管尤瑟夫 ?梅赫迪(Yusuf 
Mehdi)表示:“Xbox One登陆中国对于微软及整个行业是重要里程碑,百视通是微软...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 09:34:44   
                                阅读次数:
329
                             
                    
                        
                            
                            
                                Reverse a linked list from positionmton. Do it 
in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 
2 andn= 4,return1->4->3->2->5->NULL.No...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 09:10:46   
                                阅读次数:
252
                             
                    
                        
                            
                            
                                少数次通过 1 public class Solution { 2 public int[] 
plusOne(int[] digits) { 3 int[] carry=new int[digits.length+1]; 4 int[] 
results=new i...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 08:23:11   
                                阅读次数:
271
                             
                    
                        
                            
                            
                                许多次通过,主要是没有考虑到这种情况:“A C ”结尾有多重空格的情况。 1 public class 
Solution { 2 public int lengthOfLastWord(String s) { 3 int j, k; 4 if(s == nu...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 08:21:00   
                                阅读次数:
300
                             
                    
                        
                            
                            
                                oracle db打one-off-patch 一例...
                            
                            
                                分类:
数据库   时间:
2014-05-02 06:45:41   
                                阅读次数:
399
                             
                    
                        
                            
                            
                                最近在看Jdk6中String的源码的时候发现String的有个这样的构造方法,源代码内容如下:
public String(String original) {
	int size = original.count;
	char[] originalValue = original.value;
	char[] v;
  	if (originalValue.length > size) {
...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 06:34:52   
                                阅读次数:
237