package main /** * * @param n int整型 * @return string字符串一维数组 */ func generateParenthesis(n int) []string { ans := make([]string, 0) var dfs func(pos int, n int, m int, vis []int) dfs = func(pos int, n int, m int, vis []int) { m++ if pos == n-1 { vis[pos] = m arr := make([]byte, 0) ...