Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 题目:求2个二进制字符串的和,结果也要二进制字符串输出。 ...
分类:
其他好文 时间:
2016-05-20 22:13:36
阅读次数:
126
一、Redis简介Redis是一个开源(BSD许可)的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。它支持多种类型的数据结构,如字符串(strings),散列(hashes),列表(lists),集合(sets),有序集合(sortedsets)与范围查询,bitmaps,hyperloglogs和地..
分类:
其他好文 时间:
2016-05-20 14:45:17
阅读次数:
244
一天一道LeetCode系列(一)题目
Given an array of strings, group anagrams together.
For example, given: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”],
Return:
[
[“ate”, “eat”,”tea”],...
分类:
其他好文 时间:
2016-05-18 19:08:45
阅读次数:
219
Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat", t = ...
分类:
其他好文 时间:
2016-05-17 17:49:47
阅读次数:
120
17: LCS Description Giving two strings consists of only lowercase letters, find the LCS(Longest Common Subsequence) whose all partition are not less t ...
分类:
其他好文 时间:
2016-05-16 01:48:14
阅读次数:
159
Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 注意:进位。 Similar Problem : LeetCode 2. Add T ...
分类:
其他好文 时间:
2016-05-15 16:37:43
阅读次数:
140
package main import ( "strings" "fmt") // 返回各个单词数量统计的map func WordCount(s string) map[string]int { m := make(map[string] int) for _, word := range str ...
分类:
其他好文 时间:
2016-05-15 12:31:11
阅读次数:
99
242. Valid Anagram Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagram", t = "nagaram", return ...
分类:
编程语言 时间:
2016-05-14 18:40:07
阅读次数:
175
题目来源:http://www.lintcode.com/zh-cn/problem/compare-strings/ 先贴上错误代码,测试案例没有全部通过。不一定是顺序的。 修改之后,可以accept的程序如下: 可以accept的程序2如下: ...
分类:
其他好文 时间:
2016-05-14 00:43:49
阅读次数:
279