Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 6 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /