MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / __init__

Method __init__

animations/segmenttree.py:18–23  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

16
17class SegmentTreeDiffScene(AlgoScene):
18 def __init__(self, **kwargs):
19 super().__init__(**kwargs)
20 self.datas = np.array([1, 2, 3, 4, 5, 6])
21 self.group = []
22 for i in range(self.datas.shape[0]):
23 self.group.append(i)
24
25 def show_diff(self):
26 self.show_message("首先,让我们来看看区间问题的常见3个解法")

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected