由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - LeetCode LongestValidParentheses
相关主题
Leetcode上Longest Valid ParenthesesLeetcode上面这个Longest Palindromic Substring Part II是不是代码有问题?
leetcode那道longest valid parenthese的题很诡异leetcode上的Longest Palindromic Substring难道不收brute for
leetcode online judge Longest Palindromic Substring memory limit exceeded请问一道Leetcode的题:Longest Palindromic Substring
Memory Limit Exceeded: Longest Palindromic Substring请问leetcode 上那道Longest Consecutive Sequence题
Leetcode- Longest Substring Without Repeating Characters 的 test case帮忙看看为撒 leetcode OJ time out "Substring with Concatenation of All Words "
leetcode Longest Palindromic Substring Part II 有问题?请教一道题目
Longest Palindromic Substring from leetcode讨论一道G的题find longest substring which contains just two unique characters.
请教:这个10来行的leetcode程序有什么问题?这个怎么做?
相关话题的讨论汇总
话题: leetcode话题: substring话题: longest
进入JobHunting版参与讨论
1 (共1页)
f*********i
发帖数: 197
1
/*Given a string containing just the characters '(' and ')', find the length
of the longest valid (well-formed) parentheses substring.
* For "(()", the longest valid parentheses substring is "()", which
has length = 2.
* Another example is ")()())", where the longest valid parentheses
substring is "()()", which has length = 4.
* */
请问有没有好解法。多谢
p*****2
发帖数: 21240
2
dp
h*****3
发帖数: 1391
3
不是有人说了左扫描一遍,右扫描一遍就可以了吗?
f*********i
发帖数: 197
4
怎么dp,能不能展开说说。
1 (共1页)
进入JobHunting版参与讨论
相关主题
这个怎么做?Leetcode- Longest Substring Without Repeating Characters 的 test case
Longest Valid Parenthesesleetcode Longest Palindromic Substring Part II 有问题?
Leetcode上stack相关的题目相比CC150题怎么那么少?Longest Valid ParenthesesLongest Palindromic Substring from leetcode
问一道Facebook近期电面题请教:这个10来行的leetcode程序有什么问题?
Leetcode上Longest Valid ParenthesesLeetcode上面这个Longest Palindromic Substring Part II是不是代码有问题?
leetcode那道longest valid parenthese的题很诡异leetcode上的Longest Palindromic Substring难道不收brute for
leetcode online judge Longest Palindromic Substring memory limit exceeded请问一道Leetcode的题:Longest Palindromic Substring
Memory Limit Exceeded: Longest Palindromic Substring请问leetcode 上那道Longest Consecutive Sequence题
相关话题的讨论汇总
话题: leetcode话题: substring话题: longest