码迷,mamicode.com
首页 >  
搜索关键字:parentheses    ( 825个结果
Sicily 9456. Clumsy Cows
9456. Clumsy Cows Constraints Time Limit: 1 secs, Memory Limit: 256 MB Description Bessie the cow is trying to type a balanced string of parentheses into her new laptop, but she is s...
分类:其他好文   时间:2015-03-30 09:22:36    阅读次数:179
Leetcode: Fraction to Recurring Decimal
题目: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating, enclose the repeating part in parentheses.For...
分类:其他好文   时间:2015-03-29 16:36:10    阅读次数:144
[LeetCode 77] Combinations
题目链接:combinations 相似题型: 1.  [LeetCode 39&40] Combination Sum I & II 2. [LeetCode 78] Subsets 3.  [LeetCode 90] Subsets II 4. [LeetCode 22] Generate Parentheses import java.util.A...
分类:其他好文   时间:2015-03-29 15:09:43    阅读次数:153
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 longest valid parentheses substring is "()", which ha...
分类:其他好文   时间:2015-03-29 13:41:53    阅读次数:124
[LeetCode 22] Generate Parentheses
题目链接:generate-parentheses import java.util.ArrayList; import java.util.List; /** * Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. ...
分类:其他好文   时间:2015-03-28 08:49:39    阅读次数:105
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 i...
分类:其他好文   时间:2015-03-20 23:21:33    阅读次数:248
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 order, “()” and “()[]{}” are all valid...
分类:其他好文   时间:2015-03-20 22:03:10    阅读次数:125
Generate Parentheses
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:其他好文   时间:2015-03-20 16:18:55    阅读次数:122
leetcode 题解 || Valid Parentheses 问题
problem: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are...
分类:其他好文   时间:2015-03-19 22:08:16    阅读次数:105
LeetCode -- Longest Valid Parentheses(Dynamic Programming)
题目地址:https://leetcode.com/problems/longest-valid-parentheses/Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring. For “(...
分类:其他好文   时间:2015-03-14 16:55:18    阅读次数:188
825条   上一页 1 ... 61 62 63 64 65 ... 83 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!