码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
AI---TinyDB的使用
//从数据库TinyDB1中读出"nameList"列的值并赋值给列表变量nameList,如果数据库中不存在"nameList"列,则将空列表赋值给nameList变量。//判断nameList变量是否为空,如果不为空,则遍历每一个元素,并输出。//segment相当于subString()函数,...
分类:数据库   时间:2014-07-29 11:34:46    阅读次数:517
Minimum Window Substring &&& Longest Substring Without Repeating Characters 快慢指针,都不会退,用hashmap或者其他结构保证
1 public class Solution { 2 public static int lengthOfLongestSubstring(String s) { 3 4 char[] arr = s.toCharArray(); 5 int pre = 0; 6 ...
分类:Windows程序   时间:2014-07-29 10:51:46    阅读次数:355
[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,...
分类:其他好文   时间:2014-07-28 19:17:14    阅读次数:245
LeetCode "First Missing Positive"
Similar with "Longest Consecutive Sequence". Another usage to hashset.Take care of corner cases!class Solution {public: int firstMissingPositive(in...
分类:其他好文   时间:2014-07-28 15:16:43    阅读次数:206
Minimum Window Substring leetcode java
题目:Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S = "ADOBE....
分类:编程语言   时间:2014-07-28 14:42:23    阅读次数:264
Substring with Concatenation of All Words leetcode java
题目:You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a conca....
分类:编程语言   时间:2014-07-28 14:39:03    阅读次数:1117
Longest Substring Without Repeating Characters leetcode java
题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letter....
分类:编程语言   时间:2014-07-28 11:34:30    阅读次数:265
Longest Common Prefix leetcode java
题目:Write a function to find the longest common prefix string amongst an array of strings.题解:解题思路是,先对整个String数组预处理一下,求一个最小长度(最长前缀肯定不能大于最小长度)。然后以第0个字符串....
分类:编程语言   时间:2014-07-28 11:33:30    阅读次数:241
回文分割
周末女朋友不在家,打算做几题LeetCode的题目练练手,Pick One,随机抽中Palindrome Partitioning,题目如下: Given a strings, partitionssuch that every substring of the partition is a ...
分类:其他好文   时间:2014-07-28 11:32:20    阅读次数:417
leetcode-Palindrome Partitioning II
Palindrome Partitioning II  Total Accepted: 11791 Total Submissions: 66110My Submissions Given a string s, partition s such that every substring of the partition is a palindrome. Return t...
分类:其他好文   时间:2014-07-27 23:59:19    阅读次数:592
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!