Period
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
For each prefix of a given string S with N characters (...
分类:
其他好文 时间:
2015-07-21 12:46:50
阅读次数:
86
官网介绍:Redis is an open source advanced key-value store.It is often referred to as a data structure server since keys can contain strings,hashes,lists.....
分类:
其他好文 时间:
2015-07-21 01:17:08
阅读次数:
141
Question 1Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".Firslty I wirte a very dire...
分类:
其他好文 时间:
2015-07-20 23:10:01
阅读次数:
155
题目链接Alternating Strings II题意是指给出一个长度为n的01串,和一个整数k,要求将这个01串划分为很多子串(切很多刀),使得每个子串长度不超过k,且每个字串不是01交替出现的串(例如01, 10, 101, 010, 101010这些都是01交替出现的串),求最少需要切多少次...
分类:
其他好文 时间:
2015-07-20 22:55:20
阅读次数:
211
Given two strings S and T, determine if they are both one edit distance apart.
分析:one edit distance,要么S,T长度相同, 只有一对不同char,那么只要跳过这对不同的char,应该能匹配完两个String的;...
分类:
其他好文 时间:
2015-07-20 19:46:52
阅读次数:
107
Young theoretical computer scientist wyh2000 is teaching young pupils some basic concepts about strings.A subsequence of a stringsis a string that can...
分类:
其他好文 时间:
2015-07-20 15:52:23
阅读次数:
87
题目如下:
Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from
S1. Your task is simply to calculate S1 - S2 for any given stri...
分类:
其他好文 时间:
2015-07-20 14:26:45
阅读次数:
127
【014-Longest Common Prefix(最长公共前缀)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Write a function to find the longest common prefix string amongst an array of strings.
题目大意 写一个函数找出一个字串所数组中的最长的公共前缀。
解题思路 第一...
分类:
编程语言 时间:
2015-07-20 09:18:51
阅读次数:
183
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-07-19 10:00:25
阅读次数:
125
DescriptionGiven two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think...
分类:
其他好文 时间:
2015-07-18 12:30:39
阅读次数:
88