Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.题目的意思是:给出一组字符串,按组返回拥有相同变位词的字符串解题思路是: ...
                            
                            
                                分类:
其他好文   时间:
2014-07-06 17:47:10   
                                阅读次数:
210
                             
                    
                        
                            
                            
                                PostgreSQL正则表达式基础:OperatorDescriptionExample~Matches regular expression, case sensitive'thomas' ~ '.*thomas.*'~*Matches regular expression, case insen...
                            
                            
                                分类:
其他好文   时间:
2014-07-06 13:31:33   
                                阅读次数:
156
                             
                    
                        
                            
                            
                                要求:用户从外部导入TXT文件(input textfile),该文件有三列,分别是storeNum,MosrName,MosrNum,如下是一个input textfile的Case:5099,Scoresby,56595250,Scoresby,56595211,Scoresby,5659513...
                            
                            
                                分类:
其他好文   时间:
2014-07-06 13:12:43   
                                阅读次数:
232
                             
                    
                        
                            
                            
                                Swift学习——使用if和switch来进行条件操作,使用for,while,和do-while来进行循环
//switch支持任意类型的数据以及各种比较操作——不仅仅是整数以及测试相等
//注意如果去掉default程序会报错
let strings = "hello3"
switch strings{
    case "hello1":
    let stringsCo...
                            
                            
                                分类:
其他好文   时间:
2014-07-06 12:41:35   
                                阅读次数:
186
                             
                    
                        
                            
                            
                                For the exercises in this chapter we need a list of English words. There are lots of word lists available on the Web, but the most suitable for our pu...
                            
                            
                                分类:
其他好文   时间:
2014-07-05 22:45:55   
                                阅读次数:
545
                             
                    
                        
                            
                            
                                You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
有f(n) = f(n - 1) + f(n...
                            
                            
                                分类:
其他好文   时间:
2014-07-04 08:39:44   
                                阅读次数:
304
                             
                    
                        
                            
                            
                                Linux上安装MySQL默认是数据库的表大小写敏感的。修改很简单,只要该一个mysql的配置文件就可以了。
mysql> show tables;
+--------------------------------------+
| Tables_in_cddl                       |
+--------------------------------------...
                            
                            
                                分类:
数据库   时间:
2014-07-04 07:51:23   
                                阅读次数:
264
                             
                    
                        
                            
                            
                                问题链接: MVC怎样实现异步调用输出HTML页面该问题是个常见的 case, 故写篇文章用于提示新人。在asp.net mvc中返回View时使用的是ViewResult,它继承自ViewResultBase 同一时候它还有个兄弟PartialViewResult相信聪明的你已经知道了它俩的差别了...
                            
                            
                                分类:
Web程序   时间:
2014-07-04 00:09:12   
                                阅读次数:
4739
                             
                    
                        
                            
                            
                                写完上一篇文章后,陆续有朋友给出了其他思路,我在小结在这篇博客中。思路一:转换成字符串后输出(这也是上一篇文章给的思路)1 1 SELECT CASE WHEN @a % @b = 0 THEN CAST(@a / @b AS VARCHAR(16)) 2 2 EL...
                            
                            
                                分类:
数据库   时间:
2014-07-02 19:52:12   
                                阅读次数:
249
                             
                    
                        
                            
                            
                                在现有类和结构体的类型基础上,扩展新的功能。 语法:extension SomeType{// new functionality to add to SomeType goes here}An extension can extend an existing type to make itadopt one or more protocols.Where this is the case,the...
                            
                            
                                分类:
其他好文   时间:
2014-07-02 07:36:22   
                                阅读次数:
244