码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
【LeetCode】Palindrome Partitioning II 解题报告
【题目】 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
【LeetCode】Palindrome Partitioning 解题报告
【题目】 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)
C#中String类的几个方法(IndexOf、LastIndexOf、Substring)
分类:Windows程序   时间:2014-11-16 10:37:59    阅读次数:218
leetcode[76] Minimum Window 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...
分类:Windows程序   时间:2014-11-16 01:48:32    阅读次数:349
[leetcode] 8. Maximum Depth of Binary Tree
可能是因为我是按难度顺序刷的原因,这个其实在之前的几道题里面已经写过了。题目如下: 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
Longest Common Prefix
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
[Leetcode] Palindrome Partitioning
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的用法今天遇到截取字符串的问题,在网上查了IndexOf、LastIndexOf、Substring这三种截取字符串的使用总结如下: String.IndexOfString.IndexOf 方法 (Char, Int32, Int32)报告...
分类:其他好文   时间:2014-11-14 12:11:26    阅读次数:257
poj3693 Maximum repetition substring 后缀数组
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
Binary String Matching
描述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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!