Skip to content

Commit 0e47c29

Browse files
committedJan 22, 2022
Add solution #22
1 parent 3321a44 commit 0e47c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎solutions/0022-generate-parentheses.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var generateParenthesis = function(n) {
1818
};
1919

2020
function backtrack(result, str, open, close, max) {
21-
if (str.length == max * 2){
21+
if (str.length === max * 2) {
2222
result.push(str);
2323
return;
2424
}

0 commit comments

Comments
 (0)
Please sign in to comment.