【题目】
Given a string s, partition s such that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning of s.
For example, given s = "aab...
分类:
其他好文 时间:
2014-11-16 17:23:33
阅读次数:
158
【题目】
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
For example, given s = "aab",
Return
[
...
分类:
其他好文 时间:
2014-11-16 17:22:42
阅读次数:
176
C#中String类的几个方法(IndexOf、LastIndexOf、Substring)
给定两个串,S和T,在S中找到包含T的最短子串,如果不能包含,返回空字符。Given a string S and a string T, find the minimum window in S which will contain all the characters in T in compl...
可能是因为我是按难度顺序刷的原因,这个其实在之前的几道题里面已经写过了。题目如下: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path...
分类:
其他好文 时间:
2014-11-15 21:31:17
阅读次数:
194
Write a function to find the longest common prefix string amongst an array of strings.(每个字符串从0开始的公共部分即最长公共前缀)C++代码如下:#include#include#includeusing nam...
分类:
其他好文 时间:
2014-11-14 23:58:14
阅读次数:
463
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:
其他好文 时间:
2014-11-14 13:58:41
阅读次数:
202
IndexOf、LastIndexOf、Substring的用法今天遇到截取字符串的问题,在网上查了IndexOf、LastIndexOf、Substring这三种截取字符串的使用总结如下: String.IndexOfString.IndexOf 方法 (Char, Int32, Int32)报告...
分类:
其他好文 时间:
2014-11-14 12:11:26
阅读次数:
257
http://poj.org/problem?id=3693
Maximum repetition substring
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7241
Accepted: 2162
Description
The repe...
分类:
编程语言 时间:
2014-11-14 00:19:28
阅读次数:
338
描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as a substring of B? For ...
分类:
其他好文 时间:
2014-11-13 20:39:39
阅读次数:
139