Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ traverse_keys
Function
traverse_keys
data_structures/linked_list/skip_list.py:383–386 ·
view source on GitHub ↗
(node)
Source
from the content-addressed store, hash-verified
381
skip_list.delete(
"X"
)
382
383
def
traverse_keys(node):
384
yield
node.key
385
for
forward_node in node.forward:
386
yield
from
traverse_keys(forward_node)
387
388
assert len(set(traverse_keys(skip_list.head))) == 4
389
Callers
1
test_delete_doesnt_leave_dead_nodes
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_delete_doesnt_leave_dead_nodes
Function · 0.68