Skip to content

Commit 2bd9625

Browse files
authored
Refactor Node initialization and update methods
Refactor Node class to properly initialize value and improve type hints. Update PersistentSegmentTree methods for better clarity and maintainability.
1 parent 8372618 commit 2bd9625

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎data_structures/binary_tree/persistent_segment_tree.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
@dataclass
77
class Node:
8-
value: int = value
8+
value: int
99
left: Node | None = None
1010
right: Node | None = None
1111

0 commit comments

Comments
 (0)