Add Splay Tree implementation #13760 [hacktoberfest] #16218
Annotations
3 errors
|
ruff
Process completed with exit code 1.
|
|
Ruff (SIM108):
data_structures/binary_tree/splay_tree.py#L76
data_structures/binary_tree/splay_tree.py:76:13: SIM108 Use ternary operator `z = z.left if key < z.key else z.right` instead of `if`-`else`-block
|
|
Ruff (PLR5501):
data_structures/binary_tree/splay_tree.py#L57
data_structures/binary_tree/splay_tree.py:57:13: PLR5501 Use `elif` instead of `else` then `if`, to reduce indentation
|