We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6667aa8 commit 7938822Copy full SHA for 7938822
src/_Problems_/index.js
@@ -1,3 +1,9 @@
1
+// FIND BALANCED PARENTHESIS
2
+// FOR '[{()}]' ---->>>> BALANCED
3
+// FOR '[{()]' ---->>>> UNBALANCED
4
+// Time complexity : O(n) n is the length of the string provided.
5
+
6
7
function parentheses(s) {
8
if(typeof s !== "string" || s.length % 2 !== 0) return false;
9
let i = 0;
0 commit comments