码迷,mamicode.com
首页 >  
搜索关键字:longest consecutive    ( 3017个结果)
ZOJ 3199 Longest Repeated Substring
Longest Repeated SubstringTime Limit: 5000msMemory Limit: 32768KBThis problem will be judged onZJU. Original ID:319964-bit integer IO format:%lld Java...
分类:其他好文   时间:2015-09-14 22:42:54    阅读次数:288
Longest Palindromic Substring - 字符串中最长的回文字段
需求:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest...
分类:其他好文   时间:2015-09-14 22:27:06    阅读次数:156
leetcode 104: 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 from the root node down to the farthest...
分类:其他好文   时间:2015-09-14 16:46:54    阅读次数:101
Leetcode 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 from the root node down to the farthest le...
分类:其他好文   时间:2015-09-14 01:55:44    阅读次数:139
Longest Palindromic Substring
1 class Solution { 2 public: 3 string longestPalindrome(string s) { 4 int min_len=0,max_len=1; 5 int i,j,k; 6 if(s.enpty)return ""...
分类:其他好文   时间:2015-09-11 10:44:30    阅读次数:163
leetcode [003] : Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2015-09-11 10:41:08    阅读次数:144
Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings. 1 string longestCommonPrefix(vector& strs) { 2 int i=0,...
分类:其他好文   时间:2015-09-10 16:04:41    阅读次数:95
[LeetCode#159] Missing Ranges Strobogrammatic Number
Problem:Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s =“eceba”,T is "ece...
分类:其他好文   时间:2015-09-10 12:47:29    阅读次数:210
3. Longest Substring Without Repeating Characters
【题目描述】Given a string, find the length of the longest substring without repeating characters.For example, the longest substring without repeating lette...
分类:其他好文   时间:2015-09-08 12:20:24    阅读次数:94
[LeetCode]题解(python):005-Longest Palindromic Substring
题目来源:https://leetcode.com/problems/longest-palindromic-substring/题意分析: 这道题目是输入一段不超过1000的字符串,输出最长的回文子字符串,输入的字符串有一个唯一的最长回文子字符串(个人觉得这个没什么用,还限制了一些输入,比如长度为...
分类:编程语言   时间:2015-09-08 12:20:13    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!