Skip to content

Commit bb9a5fc

Browse files
committed
answer valid parentheses
1 parent 5b003d2 commit bb9a5fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

valid-parentheses.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ var isValid = function (s) {
2121
}
2222
}
2323
}
24+
if (hashMap.length > 0) return false;
2425
return true;
2526
};
26-
27-
isValid("((({[}[]})))");
28-
console.log(isValid("((({[][]})))"));

0 commit comments

Comments
 (0)