2014年9月2日

Valid Parentheses

摘要: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the 阅读全文

posted @ 2014-09-02 11:21 bug睡的略爽 阅读(140) 评论(0) 推荐(0) 编辑

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: " 阅读全文

posted @ 2014-09-02 09:58 bug睡的略爽 阅读(392) 评论(0) 推荐(0) 编辑

导航