Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python/Tasks/bracket_validator.py #171

Open
pratham2908 opened this issue Sep 28, 2021 · 2 comments
Open

Python/Tasks/bracket_validator.py #171

pratham2908 opened this issue Sep 28, 2021 · 2 comments
Assignees
Labels
Hacktoberfest This repository is part of Hacktober Contributions python task In Task folder

Comments

@pratham2908
Copy link
Collaborator

Task

You're working with an intern that keeps coming to you with JavaScript code that won't run because the braces, brackets, and parentheses are off. To save you both some time, you decide to write a braces/brackets/parentheses validator.
Let's say:

'(', '{', '[' are called "openers."
')', '}', ']' are called "closers."
Write an efficient function that tells us whether or not an input string's openers and closers are properly nested.

Examples:

"{ [ ] ( ) }" should return True
"{ [ ( ] ) }" should return False
"{ [ }" should return False

You are required to follow the template and fill in the missing pieces.

Some programs may have a few syntactic errors scattered here and there.

@pratham2908 pratham2908 added Hacktoberfest This repository is part of Hacktober Contributions task In Task folder python labels Sep 28, 2021
@And-Rahul
Copy link

Assign me.

@SohilK03
Copy link
Contributor

SohilK03 commented Oct 4, 2021

Make PR's it will not be assigned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest This repository is part of Hacktober Contributions python task In Task folder
Projects
None yet
Development

No branches or pull requests

3 participants