-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
Remove_Invalid_Parenthesis.py #12340
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
Conversation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[FIX] | This issue for getting things validated backtracking/Remove_Invalid_Parenthesis.py:18:5: N802 Function name removeInvalidParenthesis
should be lowercase
if len(str) == 0: | ||
return | ||
|
||
visit = set() | ||
|
||
q = [] | ||
temp = 0 | ||
level = 0 | ||
|
||
q.append(str) | ||
visit.add(str) | ||
while len(q): | ||
str = q[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try running pre --commit [ More on Contribution.md ]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is plagiarized from https://www.geeksforgeeks.org/remove-invalid-parentheses/
The code is nearly identical, with the only differences being the removal of some parentheses and almost all comments.
You had checked this checkbox in your PR, so you know that we do not plagiarism whatsoever.
- This pull request is all my own work -- I have not plagiarized.
Describe your change:
Checklist: