LeetCode OJGiven an array withnobjects colored 
red, white or blue, sort them so that objects of the same color are adjacent, 
with the colors in the or...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 17:37:37   
                                阅读次数:
468
                             
                    
                        
                            
                            
                                本次内容:file类 1 package array; 2 /** 3 * file类 4 */ 5 
import java.io.File; 6 import java.io.IOException; 7 8 public class file { 9 
public static ...
                            
                            
                                分类:
编程语言   时间:
2014-05-02 16:50:03   
                                阅读次数:
387
                             
                    
                        
                            
                            
                                敌兵布阵Time Limit: 2000/1000 MS 
(Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 
37773Accepted Submission(s): 15923Problem Desc...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 14:22:52   
                                阅读次数:
303
                             
                    
                        
                            
                            
                                本次内容:DateFormat类1、DateFormat类 1 package array; 2 
/** 3 * 时间和字符串之间的转化 4 */ 5 import java.text.DateFormat; 6 import 
java.text.ParseException; 7 impor...
                            
                            
                                分类:
编程语言   时间:
2014-05-02 14:16:19   
                                阅读次数:
518
                             
                    
                        
                            
                            
                                http://blog.csdn.net/zhuzhichao0201/article/details/5817819不是很明白,先记在这里————————————————————————————————————————————————————————————dll里面给的函数如下:ReadWord...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 11:07:50   
                                阅读次数:
289
                             
                    
                        
                            
                            
                                29. 数组中出现次数超过一半的数字. 方法a. 排序取中 O(nlogn). 方法b. 
partition 函数分割找中位数 >=O(n). 方法c. 设计数变量,扫描一遍。 O(n).#include bool Invalid_Input 
= false;int getNumber(int da...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 10:46:15   
                                阅读次数:
340
                             
                    
                        
                            
                            
                                Given a sorted array and a target value, return 
the index if the target is found. If not, return the index where it would be if 
it were inserted in or...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 09:54:11   
                                阅读次数:
269
                             
                    
                        
                            
                            
                                首先看这两类都实现List接口,而List接口一共有三个实现类,分别是ArrayList、Vector和LinkedList。List用于存放多个元素,能够维护元素的次序,并且允许元素的重复。3个具体实现类的相关区别如下:ArrayList是最常用的List实现类,内部是通过数组实现的,它允许对元素...
                            
                            
                                分类:
编程语言   时间:
2014-05-02 09:43:23   
                                阅读次数:
290
                             
                    
                        
                            
                            
                                join函数利用字符将数组中的元素分割开.[root@localhost~]#find`perl-e‘@array=join("","@INC");print"@array";‘`-name*.pm|wc-l547这个例子是利用空格分开了要查找的路径,然后find可以查找所有的路径下匹配*.pm的文件,我一共查到了547个模块.
                            
                            
                                分类:
系统相关   时间:
2014-05-02 04:13:56   
                                阅读次数:
311