Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ fenwick_tree.py
File
fenwick_tree.py
data_structures/binary tree/fenwick_tree.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
__future__
import
print_function
2
class
FenwickTree:
3
4
def
__init__(self, SIZE):
# create fenwick tree with size SIZE
Callers
nothing calls this directly
Calls
3
FenwickTree
Class · 0.85
update
Method · 0.45
query
Method · 0.45
Tested by
no test coverage detected