码迷,mamicode.com
首页 >  
搜索关键字:longest ordered subs    ( 3212个结果
PAT 1040 Longest Symmetric String (25)
Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given "Is PAT&TAP symmetric?", the longest sym ...
分类:其他好文   时间:2018-06-23 14:32:36    阅读次数:158
[leetcode]32. Longest Valid Parentheses最长合法括号子串
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: Exampl ...
分类:其他好文   时间:2018-06-21 11:36:27    阅读次数:165
最长无重复字串
给定一个字符串,找出不含有重复字符的最长子串的长度。 示例: 给定 "abcabcbb" ,没有重复字符的最长子串是 "abc" ,那么长度就是3。 给定 "bbbbb" ,最长的子串就是 "b" ,长度是1。 给定 "pwwkew" ,最长子串是 "wke" ,长度是3。请注意答案必须是一个子串, ...
分类:其他好文   时间:2018-06-20 22:45:14    阅读次数:192
LeetCode 题解之 5. Longest Palindromic Substring
5. Longest Palindromic Substring 题目描述和难度 + 题目描述: 给定一个字符串 s,找到 s 中最长的回文子串。你可以假设?s 的最大长度为1000。 示例 1: 输入: "babad" 输出: "bab" 注意: "aba"也是一个有效答案。 示例 2: 输入: ...
分类:其他好文   时间:2018-06-20 14:44:00    阅读次数:163
leetcode 5. Longest Palindromic Substring
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: ...
分类:其他好文   时间:2018-06-18 23:47:35    阅读次数:230
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 l ...
分类:其他好文   时间:2018-06-18 17:15:52    阅读次数:170
128. Longest Consecutive Sequence
问题描述: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. Your algorithm should run in O(n) complexity. ...
分类:其他好文   时间:2018-06-17 10:57:20    阅读次数:142
Longest Common Prefix
描述Write a function to find the longest common prefix string amongst an array of strings.分析从位置 0 开始,对每一个位置比较所有字符串,直到遇到一个不匹配。 代码 ...
分类:其他好文   时间:2018-06-16 17:04:03    阅读次数:137
[leetcode]295. Find Median from Data Stream数据流的中位数
Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two ...
分类:其他好文   时间:2018-06-16 10:27:48    阅读次数:181
Longest Palindromic Substring
描述Given a string S, find the longest palindromic substring in S. You may assume that the maximumlength of S is 1000, and there exists one unique longe ...
分类:其他好文   时间:2018-06-13 23:42:30    阅读次数:316
3212条   上一页 1 ... 69 70 71 72 73 ... 322 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!