码迷,mamicode.com
首页 >  
搜索关键字:parentheses    ( 825个结果
Longest Valid Parentheses
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:其他好文   时间:2014-07-07 15:34:56    阅读次数:160
[leetcode] Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
分类:其他好文   时间:2014-06-27 12:25:27    阅读次数:721
Leetcode: Longest Valid Parentheses
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the lon...
分类:其他好文   时间:2014-06-25 11:07:45    阅读次数:230
POJ-1068 Parencodings
Description Let S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways:  q By an integer sequence P = p1 p2...pn where pi is the number of left parentheses...
分类:其他好文   时间:2014-06-22 14:06:49    阅读次数:249
LeetCode: Valid Parentheses 题解
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:其他好文   时间:2014-06-18 12:56:59    阅读次数:155
LeetCode: Generate Parentheses 题解
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:其他好文   时间:2014-06-18 11:15:22    阅读次数:149
Generate Parentheses
题目 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: "((()))", "(()())", "(())()", "()...
分类:其他好文   时间:2014-06-17 22:59:06    阅读次数:223
Valid Parentheses
题目 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" ...
分类:其他好文   时间:2014-06-17 21:34:00    阅读次数:189
Longest Valid Parentheses
题目 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...
分类:其他好文   时间:2014-06-16 22:41:41    阅读次数:267
LeetCode:Generate Parentheses
题目链接Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((...
分类:其他好文   时间:2014-06-09 15:11:33    阅读次数:212
825条   上一页 1 ... 78 79 80 81 82 83 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!