Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc ...
分类:
其他好文 时间:
2017-07-04 12:14:52
阅读次数:
202
程序strings key-value 类型 ,value不仅是String,也可以是数字.使用strings 类型可以完全实现目前 Memcache 的功能,并且效率更高,还可以享受redis的定时持久化,操作日志及replication 等功能. 除了提供与 Memcache一样的get ,se ...
分类:
其他好文 时间:
2017-07-03 10:21:10
阅读次数:
261
题目链接:http://poj.org/problem?id=2406 题目大意:找出字串最大循环次数 方法:和上一个一样 传送门 #include <iostream> #include <cstdio> #include <algorithm> #include <cstring> using ...
分类:
其他好文 时间:
2017-07-02 17:49:11
阅读次数:
178
这个也是简单题目。可是关键在于题意的理解。 题目原文就一句话:Write a function to find the longest common prefix string amongst an array of strings. 题意是给一个字符串数组,找出这个字符串数组中全部字符串的最长公共 ...
分类:
其他好文 时间:
2017-07-02 16:18:04
阅读次数:
248
题目: 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", ...
分类:
编程语言 时间:
2017-07-01 11:58:10
阅读次数:
145
题目1042:Coincidence 时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:4045 解决:2208 题目描述: Find a longest common subsequence of two strings. 输入: First and second line of each ...
分类:
其他好文 时间:
2017-06-30 19:46:03
阅读次数:
185
WebSafeBase64Decode golang (adapter zplay doubleclick ) func base64url_decode(s string) ([]byte, error) { base64Str := strings.Map(func(r rune) rune {... ...
分类:
Web程序 时间:
2017-06-30 00:04:40
阅读次数:
349
Redis各类型应用场景 Redis的六种特性 l Strings l Hashs l Lists l Sets l Sorted Sets l Pub/Sub Redis各特性的应用场景 Strings Strings 数据结构是简单的key-value类型,value其实不仅是String,也可 ...
分类:
其他好文 时间:
2017-06-29 17:40:38
阅读次数:
193
题目描述 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" ...
分类:
其他好文 时间:
2017-06-29 17:24:21
阅读次数:
134