原题地址:https://oj.leetcode.com/problems/anagrams/题意:Given 
an array of strings, return all groups of strings that are anagrams.Note: All 
inputs will be i...
                            
                            
                                分类:
编程语言   时间:
2014-06-29 13:25:28   
                                阅读次数:
355
                             
                         
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/search-a-2d-matrix/题意:Write 
an efficient algorithm that searches for a value in anmxnmatrix. This matrix has 
the...
                            
                            
                                分类:
编程语言   时间:
2014-06-29 07:56:13   
                                阅读次数:
321
                             
                         
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/valid-sudoku/题意:Determine 
if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board 
could b...
                            
                            
                                分类:
编程语言   时间:
2014-06-07 11:26:18   
                                阅读次数:
296
                             
                         
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/sudoku-solver/题意:Write 
a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are 
indicated b...
                            
                            
                                分类:
编程语言   时间:
2014-06-07 09:30:06   
                                阅读次数:
342
                             
                         
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/longest-consecutive-sequence/题意:Given 
an unsorted array of integers, find the length of the longest consecutive ...
                            
                            
                                分类:
编程语言   时间:
2014-06-06 23:13:20   
                                阅读次数:
324
                             
                         
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/题意:Say 
you have an array for which theithelement is the price of a given stoc...
                            
                            
                                分类:
编程语言   时间:
2014-06-06 20:04:46   
                                阅读次数:
400
                             
                         
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/triangle/题意:Given 
a triangle, find the minimum path sum from top to bottom. Each step you may move 
to adjacent n...
                            
                            
                                分类:
编程语言   时间:
2014-06-06 17:31:34   
                                阅读次数:
397
                             
                         
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/distinct-subsequences/题意:Given 
a stringSand a stringT, count the number of distinct subsequences ofTinS.A 
subseq...
                            
                            
                                分类:
编程语言   时间:
2014-06-06 09:59:43   
                                阅读次数:
330
                             
                         
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/interleaving-string/题意:Givens1,s2,s3, 
find whethers3is formed by the interleaving ofs1ands2.For example,Given:s1...
                            
                            
                                分类:
编程语言   时间:
2014-06-06 07:26:08   
                                阅读次数:
351
                             
                         
                    
                        
                            
                            
                                题目来源:Light OJ 1114 Easily Readable
题意:求一个句子有多少种组成方案 只要满足每个单词的首尾字符一样 中间顺序可以变化
思路:每个单词除了首尾 中间的字符排序 然后插入字典树 记录每个单词的数量
输入一个句子 每个单词也排序之后查找 根据乘法原理 答案就是每个单词的数量之积
#include 
#include 
#include 
#include 
u...
                            
                            
                                分类:
其他好文   时间:
2014-06-02 12:34:48   
                                阅读次数:
160