Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ non_recursive_segment_tree.py
File
non_recursive_segment_tree.py
data_structures/binary_tree/non_recursive_segment_tree.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
A non-recursive Segment Tree implementation
with
range query and single element update,
3
works virtually
with
any list of the same type of elements
with
a
"commutative"
4
combiner.
Callers
nothing calls this directly
Calls
3
test_all_segments
Function · 0.85
SegmentTree
Class · 0.70
update
Method · 0.45
Tested by
no test coverage detected