-
Notifications
You must be signed in to change notification settings - Fork 313
Added Fenwick Trees #92
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
Codecov Report
@@ Coverage Diff @@
## master #92 +/- ##
============================================
+ Coverage 97.385% 98.095% +0.71%
============================================
Files 30 21 -9
Lines 1721 1575 -146
============================================
- Hits 1676 1545 -131
+ Misses 45 30 -15
|
pydatastructs/trees/fenwick_tree.py
Outdated
@@ -0,0 +1,34 @@ | |||
__all__ = ['FenwickTree'] | |||
class FenwickTree(): | |||
def __init__(self, array): |
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.
We use __new__
to create and initialise objects. See other modules and files for examples.
from pydatastructs.trees import FenwickTree | ||
from pydatastructs.utils.raises_util import raises | ||
from copy import deepcopy | ||
def test_FenwickTree(): |
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.
Add empty line.
Please add doc strings to classes and methods. See other modules for examples. |
Are you participating through GSSoC, 2020? |
@czgdp1807 Made changes as you instructed |
No |
Thanks. Some minor changes are required. Please enable |
Allowed edit from maintainers |
Is there anything else need to be done? |
No. I am a bit busy to make some final changes to your PR. I will push the changes whenever I will find some time. |
Added Fenwick Trees
Closes #24