Add Splay Tree implementation #13760 [hacktoberfest] #16217
Annotations
3 errors
|
ruff
Process completed with exit code 1.
|
|
Ruff (SIM108):
data_structures/binary_tree/splay_tree.py#L74
data_structures/binary_tree/splay_tree.py:74: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#L55
data_structures/binary_tree/splay_tree.py:55:13: PLR5501 Use `elif` instead of `else` then `if`, to reduce indentation
|