MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / SegmentTree.py

File SegmentTree.py

Python/SegmentTree.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class SegmentTree: # Every node has an index and a segment range
2 def __init__(self,arr):
3 self.arr=arr
4 self.seg=[0]*(4*len(arr))

Callers

nothing calls this directly

Calls 5

SegmentTreeClass · 0.85
buildMethod · 0.80
queryMethod · 0.80
printFunction · 0.50
updateMethod · 0.45

Tested by

no test coverage detected