很久之前刷的CTCI的题目,都快忘记了,做个分类汇总,再重新好好复习一遍。
Chapter 1 | Arrays and Strings
1.1 Implement an algorithm to determine if a string has all unique characters. What if you can not use additional
data stru...
分类:
其他好文 时间:
2014-12-26 20:20:00
阅读次数:
452
题目:(String)Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique...
分类:
其他好文 时间:
2014-12-25 06:34:06
阅读次数:
198
Palindrome PartitioningGiven a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioni...
分类:
其他好文 时间:
2014-12-24 21:22:09
阅读次数:
184
chromium的国际化资源文件大部分在目录src\chrome\app\resources下,例如我们在设置中选取一句话。
系统->关闭 Chromium 后继续运行后台应用
在资源文件src\chrome\app\resources\chromium_strings_zh-CN.xtb,可以找到这句话
关闭 Chromium 后继续运行后台应用
它其实对应的是src/chrome/ap...
分类:
其他好文 时间:
2014-12-23 14:03:51
阅读次数:
504
【题目】
Given two numbers represented as strings, return multiplication of the numbers as a string.
Note: The numbers can be arbitrarily large and are non-negative.
【解析】
题意:两个字符串表示的非负整数相乘,用字符串的...
分类:
其他好文 时间:
2014-12-23 12:32:31
阅读次数:
174
测试帖:http://www.aikaiyuan.com/6430.html配置如下:opcache.memory_consumption=128opcache.interned_strings_buffer=8opcache.max_accelerated_files=4000opcache.re...
分类:
系统相关 时间:
2014-12-23 06:37:27
阅读次数:
298
Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there...
分类:
其他好文 时间:
2014-12-23 00:07:39
阅读次数:
142
首先,Strings=newString("abc");这句话创建了2个对象;一个为new出来的一个实例对象,另一个则为"abc";s不为对象,s只是一个引用(C++中的指针)。查询Java中String类的构造器,有一个这样的构造器,api如下:public(original)初始化一个新创建的String对象,使其表示一个与参..
分类:
编程语言 时间:
2014-12-22 19:47:40
阅读次数:
210
Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there...
分类:
其他好文 时间:
2014-12-21 23:28:50
阅读次数:
224
Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.Show TagsSOLUTION 1:解法很直观。先找到最小长度,然后逐个字母遍历,...
分类:
其他好文 时间:
2014-12-21 20:35:48
阅读次数:
189