Given two wordsword1andword2, find the minimum 
number of steps required to convertword1toword2. (each operation is counted as 1 
step.)You have the fol...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 20:12:15   
                                阅读次数:
199
                             
                    
                        
                            
                            
                                Given a strings1, we may represent it as a 
binary tree by partitioning it to two non-empty substrings recursively.Below is 
one possible representation...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 20:11:38   
                                阅读次数:
303
                             
                    
                        
                            
                            
                                Given two integersnandk, return all possible 
combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution 
is:[ [2,4], [3,4], [2,3], [1...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 20:02:13   
                                阅读次数:
228
                             
                    
                        
                            
                            
                                Then-queens puzzle is the problem of 
placingnqueens on ann×nchessboard such that no two queens attack each 
other.Given an integern, return all distinc...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 20:00:47   
                                阅读次数:
206
                             
                    
                        
                            
                            
                                Merge two sorted linked lists and return it as 
a new list. The new list should be made by splicing together the nodes of the 
first two lists./***Defin...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 19:23:45   
                                阅读次数:
243
                             
                    
                        
                            
                            
                                Given two binary strings, return their sum 
(also a binary string).For example,a ="11"b 
="1"Return"100".classSolution{public:stringaddBinary(stringa,st...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 19:23:09   
                                阅读次数:
235
                             
                    
                        
                            
                            
                                The gray code is a binary numeral system where 
two successive values differ in only one bit.Given a non-negative 
integernrepresenting the total number...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 18:58:39   
                                阅读次数:
277
                             
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/median-of-two-sorted-arrays/题意:There 
are two sorted arrays A and B of size m and n respectively. Find the median...
                            
                            
                                分类:
编程语言   时间:
2014-06-04 18:52:31   
                                阅读次数:
356
                             
                    
                        
                            
                            
                                Given two binary trees, write a function to 
check if they are equal or not.Two binary trees are considered equal if they are 
structurally identical an...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 18:37:18   
                                阅读次数:
277
                             
                    
                        
                            
                            
                                Given two sorted integer arrays A and B, merge 
B into A as one sorted array.Note:You may assume that A has enough space (size 
that is greater or equal...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 18:18:08   
                                阅读次数:
259