Anagrams问题:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.思路: Anagrams:排序后的String作为....
                            
                            
                                分类:
其他好文   时间:
2015-03-15 16:48:36   
                                阅读次数:
106
                             
                         
                    
                        
                            
                            
                                题目: 
 Given two binary strings, return their sum (also a binary string).For example, 
a = “11” 
b = “1” 
Return “100”. 分析: 
思路一:刚开始我想的是将a和b转成数字,然后相加,结果在转成二进制字符。这种方法在a和b长度比较小的时候可行,a和b太长的时候,转成数字int或者long...
                            
                            
                                分类:
其他好文   时间:
2015-03-14 16:56:40   
                                阅读次数:
126
                             
                         
                    
                        
                            
                            
                                Palindrome Partitioning问题:Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partiti...
                            
                            
                                分类:
其他好文   时间:
2015-03-14 13:41:00   
                                阅读次数:
108
                             
                         
                    
                        
                            
                            
                                DescriptionGiven two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think...
                            
                            
                                分类:
其他好文   时间:
2015-03-12 20:49:18   
                                阅读次数:
155
                             
                         
                    
                        
                            
                            
                                Meteor 中的代码包有点特殊,分为五种:
Meteor 核心代码本身分成多个核心代码包(core package),每个 Meteor 应用中都包含,你基本上不需要花费精力来维护它们
常规 Meteor 代码包称为“isopack”,或同构代码包(isomorphic package,意味着它们既能在客户端也能在服务器端工作)。第一类代码包例如 accounts-ui 或 appcache 由...
                            
                            
                                分类:
其他好文   时间:
2015-03-11 23:33:09   
                                阅读次数:
368
                             
                         
                    
                        
                            
                            
                                Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
不难,考细节
class Solution {
public:
    string addBinary(string a, string b) {
        ...
                            
                            
                                分类:
其他好文   时间:
2015-03-11 21:46:19   
                                阅读次数:
141
                             
                         
                    
                        
                            
                            
                                Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
                            
                            
                                分类:
其他好文   时间:
2015-03-11 21:29:40   
                                阅读次数:
112
                             
                         
                    
                        
                            
                            
                                1,Numpy
     https://pypi.python.org/pypi/numpy,array processing for numbers, strings, records, and objects.
注意:对于Python2.7,需要安装Microsoft Visual C++ Compiler for Python 2.7,http://www.microsoft....
                            
                            
                                分类:
编程语言   时间:
2015-03-11 19:48:24   
                                阅读次数:
10277
                             
                         
                    
                        
                            
                            
                                下面的代码中,列出了Go官方包中常见的字符串函数。package main import s "strings"import "fmt" //为打印函数起个小名儿,比较有特点的用法var p = fmt.Println func main() { p("Contains: ", s.Contains...
                            
                            
                                分类:
其他好文   时间:
2015-03-11 10:39:57   
                                阅读次数:
130
                             
                         
                    
                        
                            
                            
                                Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.anagrams 的意思是两个词用相同的字母组成 比如 “dog" "go...
                            
                            
                                分类:
其他好文   时间:
2015-03-10 22:51:58   
                                阅读次数:
198