翻译给定一个括号序列,写一个函数用于生成正确形式的括号组合。例如,给定 n = 3,一个解决方案集是:"((()))", "(()())", "(())()", "()(())", "()()()" 原文Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
关注时代Java