Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/austingebauer/go-leetcode
/ generateParenthesis
Function
generateParenthesis
generate_parentheses_22/solution.go:3–5 ·
view source on GitHub ↗
(n int)
Source
from the content-addressed store, hash-verified
1
package
generate_parentheses_22
2
3
func
generateParenthesis(n int) []string {
4
return
genP(make([]string, 0), n,
""
)
5
}
6
7
func
genP(strs []string, n int, s string) []string {
8
if
len(s) > n*2 {
Callers
1
Test_generateParenthesis
Function · 0.85
Calls
1
genP
Function · 0.85
Tested by
1
Test_generateParenthesis
Function · 0.68