2014年10月19日
摘要: problem:Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is... 阅读全文
posted @ 2014-10-19 23:46 higerzhang 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the ... 阅读全文
posted @ 2014-10-19 00:19 higerzhang 阅读(166) 评论(0) 推荐(0) 编辑