码迷,mamicode.com
首页 >  
搜索关键字:longest ordered subs    ( 3212个结果
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
github pager学习
1、block元素段落:空行空白块:多个空格标题:#一级标题# #二级标题# #三级标题#引用:将 > 符号至于要引用的文字或者段落前列表:ordered list 每行由一个数字字符开头unordered list 每行由一个*,+or-的字符开头代码块:需要间隔四个空格以上或者一个tab以上水平...
分类:其他好文   时间:2015-09-10 01:46:35    阅读次数:159
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
迷上了代码!