Skip to content

Commit

Permalink
fixes TheAlgorithms#11232 issue replaces global variable by instance …
Browse files Browse the repository at this point in the history
…variable
  • Loading branch information
GantedaAravind committed Feb 12, 2024
1 parent ed8d920 commit 52e274d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_structures/binary_tree/segment_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def query_recursive(self, idx, l, r, a, b): # noqa: E741

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)

Expand Down

0 comments on commit 52e274d

Please sign in to comment.