码迷,mamicode.com
首页 >  
搜索关键字:parentheses    ( 825个结果
Longest Valid Parentheses
Longest Valid Parentheses问题:Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses sub...
分类:其他好文   时间:2015-05-11 12:27:10    阅读次数:110
Java [leetcode 20]Valid Parentheses
题目描述:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in ...
分类:编程语言   时间:2015-05-10 20:29:24    阅读次数:107
LeetCode 20 Valid Parentheses (C,C++,Java,Python)
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 "()[]{}...
分类:编程语言   时间:2015-05-10 17:21:30    阅读次数:164
LeetCode 20 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:"((...
分类:其他好文   时间:2015-05-10 17:15:33    阅读次数:127
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: "((()))", "(()())", "(())()", "()((...
分类:其他好文   时间:2015-05-09 10:16:06    阅读次数:102
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 ...
分类:其他好文   时间:2015-05-08 10:55:44    阅读次数:95
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 exam...
分类:其他好文   时间:2015-05-07 20:32:14    阅读次数:162
Java for LeetCode 032 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...
分类:编程语言   时间:2015-05-07 20:11:27    阅读次数:154
LeetCode (29) 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-05-07 14:32:56    阅读次数:152
[Leetcode][020] Valid Parentheses (Java)
题目在这里:https://leetcode.com/problems/valid-parentheses/【标签】Stack; String【个人分析】这个题应该算是Stack的经典应用。先进后出 ( FILO) 的结构: 先来的左边括号跟后面的右边括号相匹配。【代码解释】创建一个栈,如果遇到的是...
分类:编程语言   时间:2015-05-07 06:26:27    阅读次数:161
825条   上一页 1 ... 56 57 58 59 60 ... 83 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!