Givens1,s2,s3, find whethers3is formed by the 
interleaving ofs1ands2.For 
example,Given:s1="aabcc",s2="dbbca",Whens3="aadbbcbcac", return true.Whens3="...
                            
                            
                                分类:
其他好文   时间:
2014-06-03 14:05:46   
                                阅读次数:
177
                             
                    
                        
                            
                            
                                find k missing numbers from 1 to n. (k>=1)
                            
                            
                                分类:
其他好文   时间:
2014-05-30 21:41:26   
                                阅读次数:
593
                             
                    
                        
                            
                            
                                Givennpoints on a 2D plane, find the maximum 
number of points that lie on the same straight line./** * Definition for a 
point. * struct Point { * ...
                            
                            
                                分类:
其他好文   时间:
2014-05-30 16:27:19   
                                阅读次数:
238
                             
                    
                        
                            
                            
                                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-30 16:20:32   
                                阅读次数:
229
                             
                    
                        
                            
                            
                                Say you have an array for which theithelement 
is the price of a given stock on dayi.Design an algorithm to find the maximum 
profit. You may complete a...
                            
                            
                                分类:
其他好文   时间:
2014-05-30 16:19:05   
                                阅读次数:
320
                             
                    
                        
                            
                            
                                Given an array of integers, every element 
appearstwiceexcept for one. Find that single one.Note:Your algorithm should have 
a linear runtime complexity...
                            
                            
                                分类:
其他好文   时间:
2014-05-30 16:16:29   
                                阅读次数:
190
                             
                    
                        
                            
                            
                                Given a binary tree, find the maximum path 
sum.The path may start and end at any node in the tree.For example:Given the 
below binary tree, 1 ...
                            
                            
                                分类:
其他好文   时间:
2014-05-30 16:10:54   
                                阅读次数:
185
                             
                    
                        
                            
                            
                                Given an array of integers, every element 
appearsthreetimes except for one. Find that single one.Note:Your algorithm 
should have a linear runtime comp...
                            
                            
                                分类:
其他好文   时间:
2014-05-30 15:15:53   
                                阅读次数:
225
                             
                    
                        
                            
                            
                                Given a binary tree, find its maximum depth.The 
maximum depth is the number of nodes along the longest path from the root node 
down to the farthest le...
                            
                            
                                分类:
其他好文   时间:
2014-05-30 15:03:42   
                                阅读次数:
237
                             
                    
                        
                            
                            
                                Say you have an array for which theithelement 
is the price of a given stock on dayi.Design an algorithm to find the maximum 
profit. You may complete a...
                            
                            
                                分类:
其他好文   时间:
2014-05-30 15:00:54   
                                阅读次数:
335