We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3321a44 commit 0e47c29Copy full SHA for 0e47c29
solutions/0022-generate-parentheses.js
@@ -18,7 +18,7 @@ var generateParenthesis = function(n) {
18
};
19
20
function backtrack(result, str, open, close, max) {
21
- if (str.length == max * 2){
+ if (str.length === max * 2) {
22
result.push(str);
23
return;
24
}
0 commit comments