Skip to content

Commit 23d66c8

Browse files
committed
Runtime: 98 ms (Top 42.29%) | Memory: 42.5 MB (Top 72.31%)
1 parent 3b48ac5 commit 23d66c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/G/Generate Parentheses/Generate Parentheses.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
// Runtime: 98 ms (Top 42.29%) | Memory: 42.5 MB (Top 72.31%)
12
var generateParenthesis = function(n) {
23
let ans = []
34
generate_parenthisis(n, 0, 0, "")
45
return ans
5-
6+
67
function generate_parenthisis(n, open, close, res){
78

89
if(open==n && close == n){
@@ -19,4 +20,4 @@ var generateParenthesis = function(n) {
1920
}
2021

2122
}
22-
};
23+
};

0 commit comments

Comments
 (0)