Skip to content

Commit a97d488

Browse files
Marco-campione-githubcclauss
authored andcommitted
Changed the N to self.N in show_data in segment_tree.py (TheAlgorithms#11276)
1 parent db80738 commit a97d488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_structures/binary_tree/segment_tree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def query_recursive(self, idx, left, right, a, b):
9898

9999
def show_data(self):
100100
show_list = []
101-
for i in range(1, N + 1):
101+
for i in range(1, self.N + 1):
102102
show_list += [self.query(i, i)]
103103
print(show_list)
104104

0 commit comments

Comments
 (0)