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
回家打开小电脑写个简历,但是moderncv在Ubuntu上编译有点问题啊。一点不惊讶,下面一步一步解决吧。看到这里就JD不已:LaTeX is a markup language and also a system designed for generate high quality docume...
分类:
系统相关 时间:
2015-02-10 00:26:08
阅读次数:
424
上一节讲了maven的安装和配置,这一节我们来学习一下创建一个简单的Maven项目1. 用Maven 命令创建一个简单的Maven项目在cmd中运行如下命令:mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app-...
分类:
其他好文 时间:
2015-02-09 17:55:32
阅读次数:
111
Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri...
分类:
其他好文 时间:
2015-02-09 15:47:09
阅读次数:
151
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
Given numRows, generate the first numRows of Pascal’s triangle.
For example, given numRows = 5,
Return
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
这道题很简单,就...
分类:
其他好文 时间:
2015-02-09 14:08:34
阅读次数:
130