给出 n 代表生成括号的对数,请你写出一个函数,使其能够生成所有可能的并且有效的括号组合. 例如,给出 n = 3,生成结果为: class Solution: def generateParenthesis(self, n: int) -> List[str]: res=[] def helper(left,right,tmp): if left==n and right==n: res.append(tmp) return if left < n: helper(left+1,right,
Sphinx: 发音: DJ音标发音: [sfiŋks] KK音标发音: [sfɪŋks] 单词本身释义: an ancient imaginary creature with a lion's body and a woman's head Mythology A figure in Egyptian myth having the body of a lion and the head of a man, ram, or hawk. [古埃及神话] 斯芬克斯:古代埃及神话中人面.公羊头或鹰头