####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 overa...
                            
                            
                                分类:
其他好文   时间:
2014-05-26 23:13:41   
                                阅读次数:
265
                             
                    
                        
                            
                            
                                public class HashMap    extends AbstractMap    
implements Map, Cloneable, Serializablepublic class TreeMap    extends 
AbstractMap    implements Sorted...
                            
                            
                                分类:
编程语言   时间:
2014-05-26 13:34:23   
                                阅读次数:
268
                             
                    
                        
                            
                            
                                最近在阅读Framework Design 
Guidelines,本着现学现用的原则,于是就用FxCop工具对代码进行规范性检查时,发现了很多问题,其中包括命名以及一些设计上的规范。其中,Do not 
expose generic lists 这条设计规范引起了我的注意。该规范指出“不要在对象模型中...
                            
                            
                                分类:
其他好文   时间:
2014-05-26 12:32:20   
                                阅读次数:
294
                             
                    
                        
                            
                            
                                这种题都采用倒序的方式吧,从大到小添加。要注意的是一些小细节:比如for(int i = m+n-1; 
i >=0; i--){}, 在for语句里面已经有i--了,循环里面就不需要再写一个i--了 1 public class Solution { 2 
public void merge(...
                            
                            
                                分类:
其他好文   时间:
2014-05-26 12:14:48   
                                阅读次数:
227
                             
                    
                        
                            
                            
                                基本上一次过,要注意边界条件的问题:如果在recursion里有两个参数int begin, end, 
递归写作recursion(num, mid+1, end), 因为+号的原因,递归中是会出现begin > end 
的情况的,所以考虑初始条件的时候应该要考虑充分。 1 /** 2 * Def....
                            
                            
                                分类:
其他好文   时间:
2014-05-26 12:12:49   
                                阅读次数:
257
                             
                    
                        
                            
                            
                                Guava Maven Dependency com.google.guava guava 
{guava.version}Guava 常用方法示例Lists实例化 ListList list = Lists.newArrayList();Maps实例化 
MapMap>> map =...
                            
                            
                                分类:
其他好文   时间:
2014-05-26 10:53:50   
                                阅读次数:
233
                             
                    
                        
                            
                            
                                MySQL常用的存储引擎为MyISAM、InnoDB、MEMORY、MERGE,其中InnoDB提供事务安全表,其他存储引擎都是非事务安全表。MyISAM是MySQL的默认存储引擎。MyISAM不支持事务、也不支持外键,但其访问速度快,对事务完整性没有要求。InnoDB存储引擎提供了具有提交、回滚和...
                            
                            
                                分类:
数据库   时间:
2014-05-26 09:42:53   
                                阅读次数:
349
                             
                    
                        
                            
                            
                                【题目】
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Given a collection of intervals, merge all overlapping intervals.
For example,
Given [1,3],[2,6],[8,10],[15,18],
return [1,6],[8,10],[15,18].
...
                            
                            
                                分类:
其他好文   时间:
2014-05-24 14:18:27   
                                阅读次数:
193
                             
                    
                        
                            
                            
                                介绍一个多选list
/*
 * Copyright (C) 2008 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with th...
                            
                            
                                分类:
其他好文   时间:
2014-05-23 00:52:57   
                                阅读次数:
455
                             
                    
                        
                            
                            
                                介绍自定一个的Adapter和list的监听
注意
1....
                            
                            
                                分类:
其他好文   时间:
2014-05-23 00:51:45   
                                阅读次数:
355