Skip to content

Commit fa8fe96

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e2df553 commit fa8fe96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data_structures/binary_tree/segment_tree_node.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ def __init__(self, start: int, end: int) -> None:
44
self.start = start
55
self.end = end
66
self.value: int | None = None
7-
self.left: Node | None = None
8-
self.right: Node | None = None
7+
self.left: Node | None = None
8+
self.right: Node | None = None
99

1010

1111
class SegmentTree:
@@ -23,7 +23,7 @@ def __init__(self, nums: list[int], mode: str = "max") -> None:
2323
# Build the tree from the input list
2424
self.root: Node | None = self.build(0, self.size - 1, nums)
2525

26-
def build(self, start: int, end: int, nums: list[int]) -> Node| None:
26+
def build(self, start: int, end: int, nums: list[int]) -> Node | None:
2727
"""
2828
Recursively builds the segment tree.
2929
:param start: Start index of the segment.

0 commit comments

Comments
 (0)