mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
Changed the N to self.N in show_data in segment_tree.py (#11276)
This commit is contained in:
parent
82aa909db7
commit
b8afb214f8
|
@ -98,7 +98,7 @@ class SegmentTree:
|
|||
|
||||
def show_data(self):
|
||||
show_list = []
|
||||
for i in range(1, N + 1):
|
||||
for i in range(1, self.N + 1):
|
||||
show_list += [self.query(i, i)]
|
||||
print(show_list)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user