摘要: 原题点这里 方法1: 通过dfs,穷举所有的可能,然后判断每一种可能,是否合法。 public static List<String> generateParenthesis(int n) { List<String> ans = new ArrayList<>(); char[] par = ne 阅读全文
posted @ 2020-04-09 20:57 超级学渣渣 阅读(182) 评论(0) 推荐(0) 编辑