Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Changed the N to self.N in show_data in segment_tree.py (TheAlgorithm…
  • Loading branch information
Marco-campione-github authored May 31, 2024
commit b8afb214f8c8d185dc42dafb9676becf512ca7fa
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, left, right, a, b):

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