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....
分类:
其他好文 时间:
2015-02-15 23:10:42
阅读次数:
359
https://oj.leetcode.com/problems/valid-parentheses/Given a string containing just the characters'(',')','{','}','['and']', determine if the input stri...
分类:
其他好文 时间:
2015-02-15 20:30:40
阅读次数:
183
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:
其他好文 时间:
2015-02-14 06:32:54
阅读次数:
238
Given n pairs of parentheses, write a function togenerate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))","(()())", "(())()", "()(())", "()()()"
H...
分类:
其他好文 时间:
2015-02-10 23:18:29
阅读次数:
396
leetcode代码利用堆栈:http://oj.leetcode.com/problems/evaluate-reverse-polish-notation/http://oj.leetcode.com/problems/longest-valid-parentheses/ (也可以用一维数组,贪...
分类:
其他好文 时间:
2015-02-10 20:13:24
阅读次数:
351
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:
其他好文 时间:
2015-02-10 14:48:16
阅读次数:
164
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:
其他好文 时间:
2015-02-10 14:45:36
阅读次数:
169
麻烦各位朋友帮忙顶一下增加人气,如有错误或疑问请留言纠正,谢谢
Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
The brackets must clo...
分类:
其他好文 时间:
2015-02-10 11:23:26
阅读次数:
123
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-02-09 14:09:47
阅读次数:
113