Skip to content

Commit 8b18eda

Browse files
committed
Fix Ruff F811: remove duplicate random import
Remove redundant 'import random' on line 683 that was already imported on line 657 in the performance_comparison function
1 parent 96f4e36 commit 8b18eda

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

data_structures/binary_tree/splay_tree.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,6 @@ def performance_comparison() -> None:
680680
print(f"Root after repeated access to 50: {tree.get_root_key()}\n")
681681

682682
# Random access pattern
683-
import random
684-
685683
print("Random access pattern...")
686684
random.seed(42)
687685
keys = [random.randint(1, 100) for _ in range(100)]

0 commit comments

Comments
 (0)