Skip to content

Commit 44ce050

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

data_structures/binary_tree/treap.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from pprint import pformat
55
from random import random
66

7+
78
class Node:
89
"""
910
Treap's node
@@ -17,8 +18,6 @@ def __init__(self, value: int | None = None):
1718
self.right: Node | None = None
1819

1920
def __repr__(self) -> str:
20-
21-
2221
if self.left is None and self.right is None:
2322
return f"'{self.value}: {self.prior:.5}'"
2423
else:
@@ -174,6 +173,5 @@ def main() -> None:
174173

175174

176175
if __name__ == "__main__":
177-
178176
doctest.testmod()
179177
main()

0 commit comments

Comments
 (0)