Set the Python file maximum line length to 88 characters (#2122)
* flake8 --max-line-length=88
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -126,7 +126,8 @@ class SkipList(Generic[KT, VT]):
|
||||
"""
|
||||
:param key: Searched key,
|
||||
:return: Tuple with searched node (or None if given key is not present)
|
||||
and list of nodes that refer (if key is present) of should refer to given node.
|
||||
and list of nodes that refer (if key is present) of should refer to
|
||||
given node.
|
||||
"""
|
||||
|
||||
# Nodes with refer or should refer to output node
|
||||
@@ -141,7 +142,8 @@ class SkipList(Generic[KT, VT]):
|
||||
# in skipping searched key.
|
||||
while i < node.level and node.forward[i].key < key:
|
||||
node = node.forward[i]
|
||||
# Each leftmost node (relative to searched node) will potentially have to be updated.
|
||||
# Each leftmost node (relative to searched node) will potentially have to
|
||||
# be updated.
|
||||
update_vector.append(node)
|
||||
|
||||
update_vector.reverse() # Note that we were inserting values in reverse order.
|
||||
|
||||
Reference in New Issue
Block a user