Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ segment_tree_other.py
File
segment_tree_other.py
data_structures/binary_tree/segment_tree_other.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
Segment_tree creates a segment tree
with
a given array and function,
3
allowing queries to be done later in log(N) time
4
function takes 2 values and returns a same type value
Callers
nothing calls this directly
Calls
4
traverse
Method · 0.80
query_range
Method · 0.80
SegmentTree
Class · 0.70
update
Method · 0.45
Tested by
no test coverage detected