-
-
Notifications
You must be signed in to change notification settings - Fork 46k
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
update segmenttree docstrings Fixes #9943 #9975
Conversation
@cclauss please approve this PR for hacktoberfest and add the hacktoberfest-accepted label after PR merging. Thank you! |
self.st = [0] * ( | ||
4 * self.N | ||
) # approximate the overall size of segment tree with array N |
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.
I gotta say that overall I am not a fan of these single variable names and uppercase variable names!!!
This looks like it was literally ported from some other language with minimal modifications.
a
has no data type and no self-documenting name and the class version is uppercase. If find it unreadable.
self.st = [0] * ( | |
4 * self.N | |
) # approximate the overall size of segment tree with array N | |
# approximate the overall size of the segment tree with array N | |
self.st = [0] * (4 * self.N) |
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.
Agreed, I'll make an issue for people to tackle naming issues in the repository, seems like it was an older thing
…#9975) * update docstrings * update docstrings * update docstrings
Describe your change:
Checklist: