Skip to content

Commit 7938822

Browse files
Add files via upload
Added problem statement and time complexity
1 parent 6667aa8 commit 7938822

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/_Problems_/index.js

+6
Original file line numberDiff line numberDiff line change
@@ -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+
17
function parentheses(s) {
28
if(typeof s !== "string" || s.length % 2 !== 0) return false;
39
let i = 0;

0 commit comments

Comments
 (0)