0.学习时间: 2014-05-15which命令用来在PATH指定的路径中查找特定的文件, 
并返回第一个找到的结果.1. 命令格式: which 文件名2.命令功能 一般使用which命令来查看某个系统命令(可执行文件)是否存在, 
以及该命令所在的目录.3.命令参数 -n 指定文件名长度...
                            
                            
                                分类:
系统相关   时间:
2014-05-17 14:36:45   
                                阅读次数:
391
                             
                    
                        
                            
                            
                                【题目】
原文:
1.8 Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check if s2 is a rotation of s1 using only one...
                            
                            
                                分类:
其他好文   时间:
2014-05-16 01:50:08   
                                阅读次数:
311
                             
                    
                        
                            
                            
                                题目1:Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie,...
                            
                            
                                分类:
其他好文   时间:
2014-05-16 01:46:15   
                                阅读次数:
460
                             
                    
                        
                            
                            
                                Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero....
                            
                            
                                分类:
其他好文   时间:
2014-05-16 01:34:36   
                                阅读次数:
293
                             
                    
                        
                            
                            
                                【题目】
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a contain...
                            
                            
                                分类:
其他好文   时间:
2014-05-16 01:32:47   
                                阅读次数:
406
                             
                    
                        
                            
                            
                                A linked list is given such that each node 
contains an additional random pointer which could point to any node in the list 
or null.Return a deep copy ...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 21:00:06   
                                阅读次数:
325
                             
                    
                        
                            
                            
                                文件查找1,which命行查找可执行文件,which 
只会搜索系统$PATH目录2,whereis,查找可执行文件,并显示出此文件的man page文件,并且可以查找到系统的库目录3,locate 
和slocat是一样的,ubuntu14里locate为mlocate,locate是根据locate...
                            
                            
                                分类:
系统相关   时间:
2014-05-15 09:32:01   
                                阅读次数:
388
                             
                    
                        
                            
                            
                                Best Time to Buy and Sell Stock1Say you have an 
array for which theithelement is the price of a given stock on dayi.If you were 
only permitted to comp...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 22:36:11   
                                阅读次数:
353
                             
                    
                        
                            
                            
                                Pat1043代码题目描述:A Binary Search Tree (BST) is 
recursively defined as a binary tree which has the following properties:The left 
subtree of a node contain...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 22:03:25   
                                阅读次数:
487
                             
                    
                        
                            
                            
                                1、
??
Distinct Subsequences 
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original str...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 20:22:58   
                                阅读次数:
275