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

Bracket Matcher #16

Closed
james-gates-0212 opened this issue Apr 2, 2024 · 0 comments · Fixed by #17
Closed

Bracket Matcher #16

james-gates-0212 opened this issue Apr 2, 2024 · 0 comments · Fixed by #17
Assignees
Labels
enhancement New feature or request

Comments

@james-gates-0212
Copy link
Owner

Have the function BracketMatcher(str) take the str parameter being passed and return 1 if the brackets are correctly matched and each one is accounted for. Otherwise return 0. For example: if str is "(hello (world))", then the output should be 1, but if str is "((hello (world))" the the output should be 0 because the brackets do not correctly match up. Only "(" and ")" will be used as brackets. If str contains no brackets return 1.

@james-gates-0212 james-gates-0212 added the enhancement New feature or request label Apr 2, 2024
@james-gates-0212 james-gates-0212 self-assigned this Apr 2, 2024
@james-gates-0212 james-gates-0212 linked a pull request Apr 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant