Write a function to find the longest common prefix string amongst an array of strings. 让我们在一个字符串中找出所有字符串的共同前缀 ...
分类:
其他好文 时间:
2016-09-19 01:03:18
阅读次数:
171
Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: ...
分类:
其他好文 时间:
2016-09-17 09:29:29
阅读次数:
162
Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 这个题目只要注意各种情况你就成功了一大半,特别要注意的是对进位赋值后可能产生的变化, ...
分类:
其他好文 时间:
2016-09-17 00:10:27
阅读次数:
143
题目链接:hdu_5507_GT and strings 题意:给n个字符串和q个询问,每个询问给两个数字x,y,问1.x是否为y的子序列,2.x是否为y的子串,是输出1,否则输出0,每个询问输出2个数字 题解: 对于子序列,朴素的做法,每次询问的复杂度为max(str[x],str[y]),题目好 ...
分类:
其他好文 时间:
2016-09-16 17:05:03
阅读次数:
261
一、Redis的使用REmoteDIctionaryServer(Redis)是一个由SalvatoreSanfilippo写的key-value存储系统。Redis优势性能极高–Redis能读的速度是110000次/s,写的速度是81000次/s。丰富的数据类型–Redis支持二进制案例的Strings,Lists,Hashes,Sets及OrderedSets数据类型操作。原子?.
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 ...
分类:
其他好文 时间:
2016-09-14 07:15:17
阅读次数:
146
PHP加速插件-opcache参数详解zend_extension=opcache.so#这样去加扩展opcache.memory_consumption=128#为opcache分配多少共享内存128Mopcache.interned_strings_buffer=8#internedstring的内存大小opcache.max_accelerated_files=4000#最大缓存的文件数目opcache.revalidate_f..
分类:
Web程序 时间:
2016-09-13 22:35:06
阅读次数:
412
package addBinary67;/* Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100". */public class Solut ...
分类:
编程语言 时间:
2016-09-13 22:26:32
阅读次数:
159
我是帅气的标题栏【结尾有彩蛋,彩蛋】 首先是UI方面,关于应用中的国际化问题: 设置中英文的切换。这一块基本上就是创建一个新的文件类型1、File-> New-> flie->Resource->Strings File,新建一个Strings File类型的文件,有一个需要注意的地方,就是这个文件 ...
分类:
其他好文 时间:
2016-09-13 20:31:16
阅读次数:
266
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-09-13 11:42:46
阅读次数:
110