leetcode -Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000,...
分类:
其他好文 时间:
2015-08-17 00:58:54
阅读次数:
112
Description
Let x and y be two strings over some finite alphabet A. We would like to transform
x into y allowing only operations given below:
Deletion: a letter in x is missing in y at a co...
分类:
其他好文 时间:
2015-08-16 21:32:50
阅读次数:
102
今天在刷Multiply Strings一题时,一直出现runtime error,找了很久都没找到问题。找了一个小时,是在扛不住了,问师兄了,一眼看出问题是new int(len1)这儿出了问题,导致数组越界了。创建一个数组是int *array=new int[length],创建一个长度为le...
分类:
其他好文 时间:
2015-08-16 21:20:17
阅读次数:
126
Multiply StringsGiven two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large ...
分类:
其他好文 时间:
2015-08-16 21:11:48
阅读次数:
95
基础类型(Basic Types) ? 我们提供一些基础类型,比如数字(numbers)、字符串(strings)、结构(structures),布尔值(Boolean)等等。在TypeScript中,我们支持JavaScript中相同的类型,还提供枚举类型。 ...
分类:
其他好文 时间:
2015-08-16 19:58:51
阅读次数:
215
DescriptionLetxandybe two strings over some finite alphabetA. We would like to transformxintoyallowing only operations given below:Deletion:a letter i...
分类:
其他好文 时间:
2015-08-16 19:48:49
阅读次数:
106
题目链接:点击进入
其实就是KMP算法next数组的简单应用。如果我们设这个字符串的最小周期为x 长度为len,那么由next数组的意义,我们知道len-next[len]的值就会等于x。这就是这个题目的关键点。代码如下:#include
#include
#include
using namespace std;const int maxn=...
分类:
其他好文 时间:
2015-08-16 16:40:55
阅读次数:
95
Context 用于访问全局信息的接口 App的资源: strings, drawable资源等等下面来看一个用Context来范围资源的粒子public class MainActivity extends Activity { String TAG = "CARLOZ"; @Over...
分类:
移动开发 时间:
2015-08-16 13:32:20
阅读次数:
132
The idea is to add the two binary numbers (represented as strings) from back to forth bit by bit and store the result in the longer string. After the ...
分类:
其他好文 时间:
2015-08-16 01:59:31
阅读次数:
122
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-08-15 21:22:37
阅读次数:
112